JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Spring interview questions part 40
Spring interview questions part 40
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Handler method annotation.
A. @Before
B. @Controller
C. @After
D. @RequestMapping
Show Correct Answer
Correct Answer is :
@RequestMapping
2. Method arguments that can be used in handler methods using the @RequestMapping annotation.
A. HttpServletRequest or HttpServleResponse
B. @RequestParam
C. @ModelAttribute
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
3. Annotation which represents cookie values of requests.
A. HttpServletRequest or HttpServleResponse
B. @RequestParam
C. @Cookie
D. None of the mentioned
Show Correct Answer
Correct Answer is :
None of the mentioned
4. To add attributes to the model.
A. Map
B. ModelMap
C. All of the mentioned
D. None of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
5. To access the binding and validation result for the command object.
A. Errors
B. BindingResult
C. All of the mentioned
D. None of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
6. To notify its completion of session processing.
A. Errors
B. BindingResult
C. SessionStatus
D. None of the mentioned
Show Correct Answer
Correct Answer is :
SessionStatus
7. Controller Class renders the objects passed by the controller’s handler method.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
8. Parameter used to specify a configuration file.
A. contextConfigLocation
B. contextConfigure
C. contextLocation
D. none of these
Show Correct Answer
Correct Answer is :
contextConfigLocation
9. The @RequestMapping annotation can be applied to the class level only.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
10. Bean classes pre-registered in the web application context by default.
A. DefaultAnnotationHandlerMapping
B. AnnotationMethodHandlerAdapter
C. All of the mentioned
D. None of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
11. By default, @RequestMapping gets all the POST Requests.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
12. Callback methods provided by HandlerInterceptor to implement.
A. preHandle()
B. postHandle()
C. afterCompletion()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
all of the mentioned
13. DispatcherServtlet dispatches portlet requests to appropriate handlers that handle the requests.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
14. Maps each request to a handler through one or more handler mapping beans.
A. DispatcherServlet
B. DispatcherPortlet
C. All of the mentioned
D. None of the mentioned
Show Correct Answer
Correct Answer is :
DispatcherPortlet
15. In portlets, there are URLs:-
A. render
B. action
C. all of the mentioned
D. none of the mentioned
Show Correct Answer
Correct Answer is :
all of the mentioned
16. When a user triggers a render URL, the portlet container will ask all the portlets in the same page to handle a render request to render its view.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
17. When a user triggers an action URL in a portlet, the portlet container will first ask the target portlet to handle an action request.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
18. After Controller has finished handling a render request, it returns:-
A. model name
B. view name
C. view obect
D. all of the mentioned
Show Correct Answer
Correct Answer is :
all of the mentioned
19. DispatcherPortlet resolves a view name from one or more view resolver beans.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
20. portlet deployment descriptor file is:-
A. portlet.xml
B. portlet.config
C. portlet.xhtml
D. none of the mentioned
Show Correct Answer
Correct Answer is :
portlet.xml
Similar Interview Questions
Search for latest jobs
Find Jobs