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.
Questions
Struts 1.2 is a Tigthly coupled frame work
- True
- False
Which tag used for client side xml validation
- <html:error/>
- <html:javaScript>
- <html:Validate>
- <html:ClientValidate>
DynaActionForm creates the action object while that action invoked
- True
- False
LookupDispatchAction protects the application from i18n side effects
- True
- False
What are the methods Action Form has ?
- validate()
- reset()
- validate() & reset ()
- none of these
Struts is threatsafe or not ?
- yes, request is handled by a light-weight Action object
- struts threadsafe depends on action class logic
- no
- none of these
Disadvantage of struts is bench mark and fat controller
- True
- False
In Struts Model and view doesnt have any components, controller only have all core components
- True
- False
How will u handle exception in struts
- Declarative Exception
- programmatic Exception
- both declarative and programmatic exception
- none of these
Core classes of struts ActionServlet,Action,ActionForward,ActionMapping,ActionErrors,RequestProcessor,ActionForm
- True
- False
Struts 1.1 has xml validation
- True
- False
Struts uses command design pattern
- True
- False
Action class uses adapter design pattern
- True
- False
Process() uses template method design pattern
- True
- False
j2ee design patterns are
- Dispatcher View ,Composite View ,Front Controller ,View Helper ,Synchronizer Token
- j2ee has no design pattern
- Service to Worker ,Dispatcher View ,Composite View ,Front Controller ,View Helper ,Synchronizer Token
- Dispatcher View,Service to Worker and Composite View only
What is a thin-client application?
- A browser that uses a plug-in to process user data.
- 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.
- An application that cannot be stopped by a firewall.
- An application compiled with the -thin option of the javac command.
What is a J2EE component?
- Special icons for creating the user interface elements for thin clients.
- A data module saved to the component area of the database.
- A self-contained functional software unit that is assembled into a J2EE application and interfaces with other application components.
- A JAR file
What advantage does an entity bean have over a session bean?
- Entity bean data survives crashes.
- An entity bean represents non-persistent data.
- It creates its own JAR file during deployment.
- You get authentication code without having to write any.