A.It simplifies remote interfaces to distributed objects.
B.It promotes cleaner application partitioning and encourages reuse.
C.It provides an initial point of contact for handling all related requests.
D.It reduces maintainability due to the increased complexity of the design.
E.It provides loosely coupled handlers that can be combined in various permutations.
您可能感興趣的試卷
你可能感興趣的試題
A developer is designing a web application that must support multiple interfaces, including:
an XML web service for B2B HTML for web-based clients WML for wireless customers.
Which designpattern provides a solution for this problem?()
A.Session Facade
B.Business Delegate
C.Data Access Object
D.Model-View-Controller
E.Chain of Responsibility
A developer is designing a web application which extensively uses EJBs and JMS. The developer finds thatthere is a lot of duplicated code to build the JNDI contexts to access the beans and queues. Further,because of the complexity, there are numerous errors in the code.
Which J2EE design pattern provides asolution for this problem?()
A.Command
B.Transfer Object
C.Service Locator
D.Session Facade
E.Business Delegate
A developer is designing a web application that must support multiple interfaces,including:
an XML web service for B2B HTML for web-based clients WML for wireless customers.
Which designpattern provides a solution for this problem?()
A.Session Facade
B.Business Delegate
C.Data Access Object
D.Model-View-Controller
E.Chain of Responsibility
A developer is designing a multi-tier web application and discovers a need to hide the details of establishingand maintaining remote communications from the client. In addition, the application needs to find,in a transparent manner,the heterogeneous business components used to service the client’s requests.
Which design patterns, working together, address these issues?()
A.Business Delegate and Transfer Object
B.Business Delegate and Service Locator
C.Front Controller and Business Delegate
D.Intercepting Filter and Transfer Object
A developer has created a web application that includes a servlet for each use case in the application.These servlets have become rather difficult to maintain because the request processing methods havebecome very large. There is also common processing code in many servlets because these use cases arevery similar.
Which two design patterns can be used together to refactor and simplify this web application?()
A.Proxy
B.View Helper
C.Front Controller
D.Session Facade
E.Business Delegate
F.Model-View-Controller
最新試題
Click the ’Select and Place’ button.Place the events in the order they occur.
Click the ’Select and Place’ button.Place the events in the order they occur.
Given a Filter class definition with this method:21.public void doFilter(ServletRequest request,22.ServletResponse response,23.FilterChain chain)24.throws ServletException, IOException {25.// insert code here26.}Which should you insert at line 25 to properly invoke the next filter in the chain, or the target servlet if thereare no more filters?()
Given tutorial.jsp:2.EL Tutorial3.Example 14.5.Dear ${my:nickname(user)}6.Which, when added to the web application deployment descriptor,ensures that line 5 is included verbatimin the JSP output?()
The JSP developer wants a comment to be visible in the final output to the browser.Which comment styleneeds to be used in a JSP page?()
Which is a benefit of precompiling a JSP page?()
Click the ’Select and Place’ button.Place the events in the order they occur.
Your IT department is building a lightweight Front Controller servlet that invokes an application logic objectwith the interface:public interface ApplicationController {public String invoke(HttpServletRequest request)}The return value of this method indicates a symbolic name of the next view. From this name, the FrontController servlet looks up the JSP URL in a configuration table. This URL might be an absolute path or apath relative to the current request. Next, the Front Controller servlet must send the request to this JSP togenerate the view. Assume that the servlet variable request is assigned the current HttpServletRequestobject and the variable context is assigned the webapp’s ServletContext. Which code snippet of the FrontController servlet accomplishes this goal?()
Click the 'Select and Place' button.Place the events in the order they occur.
You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the <title> tag that requires the page name tobe specified dynamically when the header is imported.Which JSP code snippet performs the import of theheader content?()