Spring interview questions part 48

Spring interview questions part 48

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:-

Correct Answer is : NestedRuntimeException

2. Which concrete exception in the DataAccessException hierarchy should be thrown?

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.

Correct Answer is : -1

4. How does the Spring JDBC framework know that state 23505 should be mapped to DuplicateKeyException?

Correct Answer is : all of the mentioned

5. Interface for Dispatcher Servlet to auto detect view resolver beans.

Correct Answer is : ViewResolver

6. ViewResolver which maps each view name tol an application’s directory.

Correct Answer is : InternalResourceViewResolver

7. InternalResourceViewResolver resolves view names into view objects of type.

Correct Answer is : JstlView

8. By default, XmlViewResolver loads view beans from /WEB-INF/views.xml which is final.

Correct Answer is : FALSE

9. View beans from a resource bundle is loaded by.

Correct Answer is : ResourceBundleViewResolver

10. Views that can’t be resolved by InternalResourceViewResolver.

Correct Answer is : redirect

11. Properties used to determine the correct content and type for a certain web requests.

Correct Answer is : All of the mentioned

12. Inspection of header is done by which of the following.

Correct Answer is : ContentNegotiatingViewResolver

13. ContentNegotiatingViewResolver resolver configuration sets up the resolver to have the highest priority among all resolvers.

Correct Answer is : TRUE

14. The ContentNegotiatingViewResolver resolver first determines the media type for a request based on which of the following criteria?

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.

Correct Answer is : TRUE

16. To configure the exception mappings in the web application context.

Correct Answer is : SimpleMappingExceptionResolver

17. Annotation which allows a controller’s field to be assigned using Spring Expression Language(SpEL)

Correct Answer is : @Value

18. SpEL statements are recognizable.

Correct Answer is : TRUE

19. Tag, used to define a location in which to place errors in case a form.

Correct Answer is : form:errors

20. Spring-WS supports using XML marshalling technology to marshal and unmarshal objects to and from XML documents.

Correct Answer is : TRUE

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon