Java Programming - Struts And Hibernate Questions and Answers

Java Programming : Struts And Hibernate

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()
Loading...
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
Loading...
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
Loading...
4. What is the limitation of creating ActionServlet instances per web application?

[A] Two
[B] Three
[C] Unlimited
[D] One
Loading...
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
Loading...
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
Loading...
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
Loading...
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>
Loading...
9. Business delegate pattern



[A] Hides remote services complexity
[B] Reduces coupling and increases manageability
[C] Eases failure recovery
[D] All of the above
Loading...
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>
Loading...

Are these questions helpful for you?



Comments: (Your feedback is valuable to us)