Q.1.
JdbcTemplate that takes advantage of Java 1.5 features such as autoboxing, generics, and variable-length arguments to simplify its usage.
Q.2.
JdbcTemplate require statement parameters to be passed as an object array.
Q.3.
To use SimpleJdbcTemplate:-
Q.4.
SimpleJdbcTemplate offers a convenient batch update method in the form of:-
Q.5.
Method has a warning from the Java compiler because of an unchecked conversion from List to List.
Q.6.
The return type of the queryForObject() method will be determined by the class argument (e.g., String.class).
Q.7.
Named SQL parameters are specified by name (starting with a colon) rather than by position.
Q.8.
Named parameters are supported only in SimpleJdbcTemplate.
Q.9.
Implementations of the SqlParameterSource interface:-
Q.10.
The Spring framework offers a consistent data access exception-handling mechanism for its data access module.
Q.11.
In your DAO methods, you neither need to surround the code with a try/catch block nor declare throwing an exception in the method signature.
Q.12.
The direct parent class of DataAccessException is:-
Q.13.
Which concrete exception in the DataAccessException hierarchy should be thrown?
Q.14.
Error code for The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint.
Q.15.
How does the Spring JDBC framework know that stateshould be mapped to DuplicateKeyException?