Java Programming - Struts And Hibernate Questions and Answers

Struts and Hibernate Objective Types Questions With Answers and Explanations. Java Programming MCQ Quiz on Struts and Hibernate for various interviews or entrance test.
1. Which of the following methods is overridden by Action class?

[A] execute()
[B] service()
[C] run()
[D] destroy()
2. Which of the following should always forwards or redirect to a resource (view) after completed?

[A] HttpResponse object
[B] ActionServlet
[C] Action class
[D] Request Processor
3. Which of the following acts as a bridge between user-invoked URI and a business method?

[A] HttpRequest
[B] Action class
[C] ActionServlet
[D] RequestProcessor
4. What is the limitation of creating ActionServlet instances per web application?

[A] Two
[B] Three
[C] Unlimited
[D] One
5. Which of the following are the struts pre-built Action classes?

[A] RequestAction,SwitchAction,LookupRequestAction,ConfigAction,ContextAction
[B] LookupDispatchAction,SwitchAction,RequestAction,ResponseAction
[C] ForwardAction,DispatchAction,IncludeAction,LookupDispatchAction,SwitchAction
[D] ForwardAction,SwitchAction,ResponseAction, ContextAction, ConfigAction
6. Struts framework

[A] should always decouple the application from a specific model implementation
[B] provides model components
[C] does not support JavaBeans and EJB
[D] has built-in support for the model
7. The dispatch from the controller to the Action class is based on a configuration that is provided by a
[A] struts-configs.xml
[B] struts-action-config.xml
[C] struts-processor-conifg.xml
[D] struts-config.xml
8. Which of the following tags in struts-config.xml file defines the availability of necessary Struts JSP custom tag libraries?

[A] < jsp-lib>
[B] < struts-taglib>
[C] < taglib>
[D] < jsp-taglib>
9. Business delegate pattern

[A] Hides remote services complexity
[B] Reduces coupling and increases manageability
[C] Eases failure recovery
[D] All of the above
10. Which of the java bean tags is used to show the bean value on the web page?

[A] < bean:define>
[B] < bean:message>
[C] < bean:show>
[D] < bean:write>
Are these questions helpful for you?

Comments: (Your feedback is valuable to us)