adplus-dvertising
frame-decoration

Question

To access the database with JDBC:-

a.

DAO interface

b.

DAO Class

c.

DataAccess interface

d.

None of the mentioned

Answer: (a).DAO interface

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. To access the database with JDBC:-

Similar Questions

Discover Related MCQs

Q. Standard interface defined by the JDBC specification that factories Connection instances.

Q. Data source implementations provided by different vendors and projects.

Q. Spring also provides several convenient but less powerful data source implementations.

Q. SingleConnectionDataSource (a DriverManagerDataSource subclass). As its name indicates, this maintains only a single connection.

Q. Which DataSource is not stable in MultiThreaded Environment?

Q. Class which declares a number of overloaded update() template methods to control the overall update process.

Q. You implement this interface to override the statement creation task.

Q. When implementing the PreparedStatementCreator interface, you will get the database connection as the createPreparedStatement() method’s argument.

Q. It is better to implement the PreparedStatementCreator interface and other callback interfaces as inner classes if they are used within one method only.

Q. PreparedStatementSetter, as its name indicates, create a PreparedStatement object on this connection the parameter as well as binding task of the overall update process.

Q. The JdbcTemplate class offers template method for batch update operations.

Q. The primary interface that allows you to process the current row of the result set.

Q. RowCallbackHandler purpose is to map a single row of the result set to a customized object.

Q. Method of RowMapper interface in which, you have to construct the object that represents a row and return it as the method’s return value.

Q. RowMapper implementation which can automatically map a row to a new instance of the specified class.

Q. Method which provides list of maps.

Q. Spring JDBC framework offers a convenient class, to simplify your DAO implementation.

Q. The org.springframework.jdbc.core.support.JdbcDaoSupport class has a setDataSource() method and a setJdbcTemplate() method.

Q. Method to retrieve the JDBC template.

Q. JdbcTemplate that takes advantage of Java 1.5 features such as autoboxing, generics, and variable-length arguments to simplify its usage.