J2EE and Struts Framework

Test your knowledge of Java EE (J2EE) and Apache Struts framework, including design patterns, core classes, validation, exception handling, and MVC architecture.

18 Questions Published

Questions

Question 1 True/False

Struts 1.2 is a Tigthly coupled frame work

  1. True
  2. False
Question 2 Multiple Choice (Single Answer)

Which tag used for client side xml validation

  1. <html:error/>
  2. <html:javaScript>
  3. <html:Validate>
  4. <html:ClientValidate>
Question 3 True/False

DynaActionForm creates the action object while that action invoked

  1. True
  2. False
Question 4 True/False

LookupDispatchAction protects the application from i18n side effects

  1. True
  2. False
Question 5 Multiple Choice (Single Answer)

What are the methods Action Form has ?

  1. validate()
  2. reset()
  3. validate() & reset ()
  4. none of these
Question 6 Multiple Choice (Single Answer)

Struts is threatsafe or not ?

  1. yes, request is handled by a light-weight Action object
  2. struts threadsafe depends on action class logic
  3. no
  4. none of these
Question 7 True/False

Disadvantage of struts is bench mark and fat controller

  1. True
  2. False
Question 8 True/False

In Struts Model and view doesnt have any components, controller only have all core components

  1. True
  2. False
Question 9 Multiple Choice (Single Answer)

How will u handle exception in struts

  1. Declarative Exception
  2. programmatic Exception
  3. both declarative and programmatic exception
  4. none of these
Question 10 True/False

Core classes of struts ActionServlet,Action,ActionForward,ActionMapping,ActionErrors,RequestProcessor,ActionForm

  1. True
  2. False
Question 11 True/False

Struts 1.1 has xml validation

  1. True
  2. False
Question 12 True/False

Struts uses command design pattern

  1. True
  2. False
Question 13 True/False

Action class uses adapter design pattern

  1. True
  2. False
Question 14 True/False

Process() uses template method design pattern

  1. True
  2. False
Question 15 Multiple Choice (Single Answer)

j2ee design patterns are

  1. Dispatcher View ,Composite View ,Front Controller ,View Helper ,Synchronizer Token
  2. j2ee has no design pattern
  3. Service to Worker ,Dispatcher View ,Composite View ,Front Controller ,View Helper ,Synchronizer Token
  4. Dispatcher View,Service to Worker and Composite View only
Question 16 Multiple Choice (Single Answer)

What is a thin-client application?

  1. A browser that uses a plug-in to process user data.
  2. A distributed application where the client program does not process data, but instead passes data for processing to an enterprise bean running on an application server.
  3. An application that cannot be stopped by a firewall.
  4. An application compiled with the -thin option of the javac command.
Question 17 Multiple Choice (Single Answer)

What is a J2EE component?

  1. Special icons for creating the user interface elements for thin clients.
  2. A data module saved to the component area of the database.
  3. A self-contained functional software unit that is assembled into a J2EE application and interfaces with other application components.
  4. A JAR file
Question 18 Multiple Choice (Single Answer)

What advantage does an entity bean have over a session bean?

  1. Entity bean data survives crashes.
  2. An entity bean represents non-persistent data.
  3. It creates its own JAR file during deployment.
  4. You get authentication code without having to write any.