J2EE Design Patterns and Web Technologies
Questions covering J2EE design patterns including Front Controller, Business Delegate, Service Locator, DAO, Transfer Object, Session Facade, and XML parsing technologies used in web applications.
Questions
SAX can be used to modify XML
- True
- False
DOM loads the whole xml to be parsed in the memory
- True
- False
Stax is a push based XML Parser
- True
- False
With Transfer Object, it is possible that one runs into an issue of having multiple copies of the same Transfer object class with different data
- True
- False
In case your application is completely based on Container Managed Persistence, would you still like to go for DAO design pattern?
- True
- False
DAO pattern can be implemented to perform all the CRUD operations
- True
- False
Out of the following, which interface, would one have to implement to implement an intercepting filter?
- Javax.servlet.Filter
- Javax.servlet.FilterChain
- Javax.servlet.FilterConfig
- None of the above
Which of the following tags are used for implementing Composite view pattern?
- <jsp:include ….>
- <%include …%>
- All of the above
- None of the above
Using include tag improves performance of rendering a page as compared to using include directive?
- True
- False
Front Controller design pattern is implemented through implementing which of the following interfaces?
- javax.servlet.ServletConfig
- javax.servlet.Servlet
- javax.servlet.ServletContext
- All of the above
Business Delegate simplifies the underlying business service interfaces, so that, at later point of time, it is much easier simpler to modify and maintain business service
- True
- False
Service Locator pattern can possibly cache the home interface of an EJB to enhance performance of an application.
- True
- False
Which of the following patterns provide coarse grained access to business tier?
- Business Delegate
- Session Façade
- Transfer Object
- None of the above
Transfer Object Pattern can be used for updating data as well on business tier of an application?
- True
- False
DAO Design Pattern solves the problem of encapsulating details of connecting to which of the following data sources?
- RDBMS
- LDAP
- XML/Flat files
- All of them
Business Delegate pattern utilizes Service Locator pattern to encapsulate lookup and access of remote services like EJB, web services and others
- True
- False
A Transfer Object class necessarily would have to implement java.io.serializable in order for it to be passed over the network.
- True
- False
Struts, the popular MVC framework by the Jakarta project of Apache utilizes Front Controller pattern in one of the following key components of the framework. Please choose.
- Action
- ActionForm
- ActionServlet
- None of the above