单项选择题Which is characteristic of the Business Delegate pattern?()

A. It decreases complexity by removing a layer of proxy classes.
B. It reduces coupling between tiers by hiding implementation details.
C. It decreases performance due to the lack of caching of remote data.
D. It forces business-tier expectations to be dealt with in the presentation-tier.


您可能感兴趣的试卷

你可能感兴趣的试题

4.多项选择题

A Company.com developer chooses to avoid using SingleThreadModel but wants to ensure that data is updated in a thread-safe manner. 
Which two can support this design goal?()

A. Store the data in a local variable.
B. Store the data in an instance variable.
C. Store the data in the HttpSession object.
D. Store the data in the ServletContext object.
E. Store the data in the ServletRequest object.

5.单项选择题Which HttpSession method stores an object in a session?()

A. put(String name. Object value)
B. set(String name. Object value)
C. setAttribute(String name. Object value)
D. putAttribute(String name. Object value)
E. addAttribute(String name. Object value)

6.单项选择题Which element is the parent of the  tag in the web application deployment descriptor? ()

A. <web-app> 
B. <filters> 
C. <servlet> 
D. <filter-list> 

7.单项选择题


Which retrieves the value associated with “foo” from within an HttpServlet?()

A. String value = getServletConfig( ).getParameter(“foo”);
B. String value = getServletContext( ).getAttribute(“foo”);
C. Object value = getServletContext( ).getInitParameter(“foo”);
D. String value = getServletContext( ).getInitParameter(“foo”)

8.单项选择题


What is the result of a client request of the Source servlet with no query string?()

A. The output “filterAdded = null” is written to the response stream.
B. The output “filterAdded = addedByFilter” is written to the response stream.
C. An exception is thrown at runtime within the service method of the Source servlet.
D. An exeption is thrown at runtime within the service method of the Destination servlet.

9.多项选择题For a given Servletresponse response, which two retrieve an object for writing text data? ()

A. response.getWriter( )
B. response.getOutputStream( )
C. response.getOutputWriter( )
D. response.getWriter( ) .getOutputStream( )
E. response.getWriter(Writer.OUTPUT_TEXT( )

10.单项选择题


What is the result?()

A. <b></b> 
B. <b>50</b> 
C. <b>${5*10}</b> 
D. The JSP fails to execute

最新试题

Which the JSTL code snippet can be used to import content from another web resource?()

题型:单项选择题

A JSP page, current.jsp, is created to display the current weather report. The weather report is contained in a weather.html page that is rewritten every five minutes. Which line, appearing in current.jsp, ensures that the most recent version of weather.html is included whenever current.jsp is referenced?()

题型:单项选择题

Within the web application deployment descriptor, which defines a valid JNDI environment entry()

题型:单项选择题

Which the three are true about servlet filters?()

题型:多项选择题

Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()

题型:单项选择题

Which three can be placed at line 23 to retrieve an existing HttpSession object?()

题型:多项选择题

When using Form Based Authentication, which pair of fields must be used in the login form?()  

题型:单项选择题

A developer is designing a web application which extensively uses EJBs and JMS. The developer finds that there 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 a solution for this problem?()

题型:单项选择题

What code, inserted at line 21, is called prior to a session being migrated to a different JVM assuming the web application containing MyExample is deployed in a container which supports distributed applications?()

题型:单项选择题

Which the two are characteristics of the Service Locator pattern?()

题型:多项选择题