JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Spring interview questions part 47
Spring interview questions part 47
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Method used to change user’s locale.
A. set
B. setLocale
C. locale
D. set_locale
Show Correct Answer
Correct Answer is :
setLocale
2. Property of LocaleChangeInterceptor used to customize parameter name.
A. localeResolver.setLocale
B. paramName
C. locale.parm
D. none of the mentioned
Show Correct Answer
Correct Answer is :
paramName
3. LocaleChangeInterceptor can only detect the parameter for the handler mappings that enable it.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
4. Parameter which can change user’s locale by any URL.
A. locale
B. languageURL
C. language
D. none of the mentioned
Show Correct Answer
Correct Answer is :
language
5. Interface used to resolve text messages.
A. Message
B. Message_Source
C. Language
D. MessageSource
Show Correct Answer
Correct Answer is :
MessageSource
6. Tag used by view to resolve text messages.
A. spring:message
B. spring:language
C. spring:title
D. none of the mentioned
Show Correct Answer
Correct Answer is :
spring:message
7. The ResourceBundleMessageSource implementation resolves messages for different locales.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
8. cookieName is used by localeResolver to customize the cookie used.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
9. The cookieMaxAge value when browser is closed.
A. 0
B. 1
C. -1
D. TRUE
Show Correct Answer
Correct Answer is :
-1
10. JdbcTemplate that takes advantage of Java 1.5 features such as autoboxing, generics, and variable-length arguments to simplify its usage.
A. org.springframework.jdbc.core.JdbcTemplate
B. org.springframework.jdbc.core.simple.SimpleJdbcTemplate
C. org.springframework.jdbc.*
D. none of the mentioned
Show Correct Answer
Correct Answer is :
org.springframework.jdbc.core.simple.SimpleJdbcTemplate
11. JdbcTemplate require statement parameters to be passed as an object array.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
12. To use SimpleJdbcTemplate:-
A. instantiate it directly
B. retrieve its instance by extending the SimpleJdbcDaoSupport class
C. all of the mentioned
D. none of the mentioned
Show Correct Answer
Correct Answer is :
all of the mentioned
13. SimpleJdbcTemplate offers a convenient batch update method in the form of:-
A. Vector
B. Set
C. Map
D. List
Show Correct Answer
Correct Answer is :
List
14. Method has a warning from the Java compiler because of an unchecked conversion from List to List.
A. findAll()
B. query()
C. update()
D. batchUpdate()
Show Correct Answer
Correct Answer is :
findAll()
15. The return type of the queryForObject() method will be determined by the class argument (e.g., String.class).
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
16. Named SQL parameters are specified by name (starting with a colon) rather than by position.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
17. Named parameters are supported only in SimpleJdbcTemplate.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
18. Implementations of the SqlParameterSource interface:-
A. MapSqlParameterSource
B. BeanPropertySqlParameterSource
C. none of the mentioned
D. all of the mentioned
Show Correct Answer
Correct Answer is :
all of the mentioned
19. The Spring framework offers a consistent data access exception-handling mechanism for its data access module.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
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.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
Similar Interview Questions
Search for latest jobs
Find Jobs