1. Method used to change user’s locale.
Correct Answer is : setLocale
2. Property of LocaleChangeInterceptor used to customize parameter name.
Correct Answer is : paramName
3. LocaleChangeInterceptor can only detect the parameter for the handler mappings that enable it.
4. Parameter which can change user’s locale by any URL.
Correct Answer is : language
5. Interface used to resolve text messages.
Correct Answer is : MessageSource
6. Tag used by view to resolve text messages.
Correct Answer is : spring:message
7. The ResourceBundleMessageSource implementation resolves messages for different locales.
8. cookieName is used by localeResolver to customize the cookie used.
9. The cookieMaxAge value when browser is closed.
10. JdbcTemplate that takes advantage of Java 1.5 features such as autoboxing, generics, and variable-length arguments to simplify its usage.
Correct Answer is : org.springframework.jdbc.core.simple.SimpleJdbcTemplate
11. JdbcTemplate require statement parameters to be passed as an object array.
12. To use SimpleJdbcTemplate:-
Correct Answer is : all of the mentioned
13. SimpleJdbcTemplate offers a convenient batch update method in the form of:-
14. Method has a warning from the Java compiler because of an unchecked conversion from List to List.
Correct Answer is : findAll()
15. The return type of the queryForObject() method will be determined by the class argument (e.g., String.class).
16. Named SQL parameters are specified by name (starting with a colon) rather than by position.
17. Named parameters are supported only in SimpleJdbcTemplate.
18. Implementations of the SqlParameterSource interface:-
Correct Answer is : all of the mentioned
19. The Spring framework offers a consistent data access exception-handling mechanism for its data access module.
20. 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.