Close
« Tutorial

Spring MVC - Default HandlerExceptionResolvers Ordering MCQ

0/13
0 ✓
0 ✗

1. Which HandlerExceptionResolver implementations are registered by default in Spring MVC Java config, in the correct order?

2. How are the default exception resolvers exposed to DispatcherServlet?

3. A HandlerExceptionResolverComposite contains several delegate resolvers. How are the delegates ordered?

4. Resolver A implements Ordered with order 5. Resolver B does not implement Ordered. Resolver C implements Ordered with order -2. The default composite has order 0. In which order does DispatcherServlet try them?

5. An exception is thrown while handling a request. Which resolver in the sorted list handles it?

6. Which class registers the default exception resolvers when you use the MVC Java config?

7. The default resolver bean is named handlerExceptionResolver. What happens if you register this bean in your configuration?

@Bean
public HandlerExceptionResolver handlerExceptionResolver() {
  return new MyResolver();
}

8. Which of these HandlerExceptionResolver implementations is not active by default?

9. Which resolver is responsible for the @ExceptionHandler methods of a controller?

Join