JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Spring interview questions part 48
Spring interview questions part 48
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. The direct parent class of DataAccessException is:-
A. RuntimeException
B. NestedRuntimeException
C. Exception
D. Throwable
Show Correct Answer
Correct Answer is :
NestedRuntimeException
2. Which concrete exception in the DataAccessException hierarchy should be thrown?
A. errorCode
B. SQLState properties of the caught SQLException
C. All of the mentioned
D. None of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
3. Error code for The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint.
A. -1
B. 0
C. 23505
D. 1
Show Correct Answer
Correct Answer is :
-1
4. How does the Spring JDBC framework know that state 23505 should be mapped to DuplicateKeyException?
A. error code
B. SQL state
C. all of the mentioned
D. none of the mentioned
Show Correct Answer
Correct Answer is :
all of the mentioned
5. Interface for Dispatcher Servlet to auto detect view resolver beans.
A. localeResolver
B. tiles
C. ViewResolver
D. none of the mentioned
Show Correct Answer
Correct Answer is :
ViewResolver
6. ViewResolver which maps each view name tol an application’s directory.
A. InternalViewResolver
B. InternalResourceViewResolver
C. InternalResolver
D. None of the mentioned
Show Correct Answer
Correct Answer is :
InternalResourceViewResolver
7. InternalResourceViewResolver resolves view names into view objects of type.
A. JstlView
B. Jst Library
C. View
D. None of the mentioned
Show Correct Answer
Correct Answer is :
JstlView
8. By default, XmlViewResolver loads view beans from /WEB-INF/views.xml which is final.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
9. View beans from a resource bundle is loaded by.
A. ResourceBundleViewResolver
B. ResourceBundleView
C. ResourceViewResolver
D. None of the mentioned
Show Correct Answer
Correct Answer is :
ResourceBundleViewResolver
10. Views that can’t be resolved by InternalResourceViewResolver.
A. redirect
B. redirect:prefix
C. redirect:suffix
D. all of the mentioned
Show Correct Answer
Correct Answer is :
redirect
11. Properties used to determine the correct content and type for a certain web requests.
A. The URL extension provided in a request
B. The HTTP Accept header
C. All of the mentioned
D. None of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
12. Inspection of header is done by which of the following.
A. InternalViewResolver
B. ContentNegotiatingViewResolver
C. ContentNegotiating
D. InternalResolver
Show Correct Answer
Correct Answer is :
ContentNegotiatingViewResolver
13. ContentNegotiatingViewResolver resolver configuration sets up the resolver to have the highest priority among all resolvers.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
14. The ContentNegotiatingViewResolver resolver first determines the media type for a request based on which of the following criteria?
A. It checks a request path extension
B. If a request path has an extension but no match can be found in the default mediaTypes section of the ContentNegotiatingViewResolver bean
C. If no extension is present in a request path, the HTTP Accept header of the request is used
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
15. In a Spring MVC application, you can register one or more exception resolver beans in the web application context to resolve uncaught exceptions.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
16. To configure the exception mappings in the web application context.
A. SimpleMappingExceptionResolver
B. ExceptionResolver
C. ExceptionViewResolver
D. None of the mentioned
Show Correct Answer
Correct Answer is :
SimpleMappingExceptionResolver
17. Annotation which allows a controller’s field to be assigned using Spring Expression Language(SpEL)
A. @Value
B. @After
C. @Default
D. @None
Show Correct Answer
Correct Answer is :
@Value
18. SpEL statements are recognizable.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
19. Tag, used to define a location in which to place errors in case a form.
A. form
B. form:GET
C. form:POST
D. form:errors
Show Correct Answer
Correct Answer is :
form:errors
20. Spring-WS supports using XML marshalling technology to marshal and unmarshal objects to and from XML documents.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
Similar Interview Questions
Search for latest jobs
Find Jobs