Spring

Spring Projects

Spring Project 1

Spring Objective Questions And Answers
More interview questions and answers

What is struts? 1.A Technology 2.A Frameworks 3.A Java Development Tool Kit 4.A Language.

Struts is not a new language .It is not a part of JDK of not a Java Development Tool Kit. Infect it is new technology which provide a frameworks to work on web based applications.

How can we retrieve keyed values from a previously defined resource bundle? a. Using b. Using c. Using d. Using

A. Using 

Which method is necessary for Action class? a.valuator() b.reset() c.findForward() d.delet() e.execute()

e.execute()

The parameters passed into execute() method is? A. ActionMapping mapping, ActionForm form, ServletRequest request, ServletResponse response. B. Mapping mapping, ActionForm form, ServletRequest request, ServletResponse response. C. ActionMapping mapping, Form form, ServletRequest request, ServletResponse response. D. ActionMapping mapping, ActionForm form, ServletRequest request, Response response. E. ActionMapping mapping, ActionForm form, Servlet request, ServletResponse response.

A. ActionMapping mapping, ActionForm form, ServletRequest request, ServletResponse response

What is return type of execute() method? A. void B. String C. int D. ActionForward E. ActionMapping F. ActionForm

D. ActionForward

Where key will generated ? A. In Action class B. In ActionForm Class D. In ActionMapping Class E In ActionServlet Class

A. In Action class

We can create how many struts config file in an struts application? A. Only One B. Only Two B. Zero C. As many we needed D. All are wrong.

C. As many we needed

Which one is correct? A. B. C.

A.
  
  

Which of following is not struts version ? 1. Struts 1.3.8, Struts 1.2.8 2. Struts 1.2.7,Struts 1.0.2 3. Struts 2.1.8, Struts 2.0.11.2 4. Struts 2.0.11.1, Struts 2.0.6 5 Struts 3.0.11.1, Struts 1.0.11

5 Struts 3.0.11.1, Struts 1.0.11 

Struts application architectures based on the Model-View-Controller (MVC)-1 design pattern 1.Yes 2.No

2.No

Struts application architectures based on the Model-View-Controller (MVC)-2 design pattern 1.Yes 2.No

1.Yes

The ActionServlet class and Action classes are used are controller into struts application 1.Yes 2.No

1.Yes

Choose one of the following which must be have only single class for an application 1.Subclass of ActionServlet class 2. Subclass of Action classes 3. Subclass of ActionForm classes 4. None

 ActionServlet class

How many ActionServlet class for an application 1.1 1.2 3.3 4.4 5. As Many as we wise.

1.1

How many Action class for an application 1.1 1.2 3.3 4.4 5. As Many as we wise

5. As Many as we wise

How many Action class for a subclass of ActionForm 1.1 1.2 3.3 4.4 5. As Many as we wise

1.1 

How many web.xml you can use file for an application 1.1 1.2 3.3 4.4 5. As Many as we wise

1.1

How many of “struts-config.xml file for an application 1.1 1.2 3.3 4.4 5. May be more than one

5. May be more than one 

How many of xml files must have use in validate framework 1.1 1.2 3.3 4.4 5. May be more than one

1.2

Which are primary components of controller? 1.Action Class 2.A servlet of class ActionServlet 3.A class of ActionForm 4.A class of ActionMapping

2.A servlet of class ActionServlet

A servlet of class ActionServlet is configured by 1.Defining a set of Action Class 2.Defining a set of ActionMappings 3.Defining a set of ActionForm 4.None

2.Defining a set of ActionMappings

Choose true for ActionFrom 1 ActionForm beans are closer to View the than the Model. 2.ActionForm beans are closer to the Model than the View 3.Store additional information from pervious GUI. 4.All of the above 5. None

1 ActionForm beans are closer View to the than the Model.
3. Store additional information from pervious GUI.

Choose true for ActionForm bean have 1.Only property getter and property setter methods, 2.Business logic 3.Specific methods to be implemented. 4.All of the above 5. None

1.Only property getter and property setter methods

The ActionForm provides an validate() methods . Struts will automatically validate the input from the form and calls this method. 1.Yes 2.No

1.Yes

Which of following arguments will be passed into validate() method? 1.ActionMapping mapping 2.HttpServletRequest request 3.HttpResponse response 4.ActionForm form 5.None

1.ActionMapping mapping 
2.HttpServletRequest request

Which of following arguments will be passed into perform() method? 1.ActionMapping mapping, 2.ActionForm form, 3.ServletRequest request, 4.ServletResponse response 5.None

1.ActionMapping mapping,
2.ActionForm form,
3.ServletRequest request,
4.ServletResponse response

Choose true one 1.Model in Struts can interact with any standard data access technology, including EJB, JDBC, and ORB. 2.View in Struts works well with JSP, including JSTL and JSF, as well as Velocity Templates, XSLT, and other presentation systems. 3.1,2 4.None

3.1,2