当前分类: SCDCD(310-081)
问题:多选题For a given Servletresponse response, which two retrieve an object for writing text data? ()Aresponse.getWriter( )Bresponse.getOutputStream( )Cresponse.getOutputWriter( )Dresponse.getWriter( ) .getOutputStream( )Eresponse.getWriter(Writer.OUTPUT_TEXT( ...
查看答案
问题:单选题Given the HttpServlet code: getServletContext().setAttribute(“foo”, “value”); What is the result?()A The attribute foo is placed in the applicationB A ServletContextListener registered for that servlet is notifiedC A ServletAttributeListener regis...
问题:单选题Given the Tag: Assuming the tag referenced by my Tags: get Advice uses the Classic event model, which is true?()A The do After Body method is called.B The doEnd Tag method is NOT called.C The type attribute may be specified in the TLDD The do St...
问题:多选题Which four types of object can be thrown using the throw statement?()AErrorBEventCObjectDExceptionEThrowableFRuntime Exception...
问题:单选题A Company.com developer is designing a multi-tier web application and discovers a need to hide the details of establishing and maintaining remote communications from the client. In addition, because the business and resource tiers are distributed, the ...
问题:单选题What is the result()?A 2B 4C 8D 16E The code will not compile....
问题:单选题A developer is designing a web application that makes many fine-grained remote data requests for each client request. During testing, the developer discovers that the volume of remote requests significantly degrades performance of the application. Whic...
问题:单选题What is the result?()A The program runs and prints nothing.B The program runs and prints “Equal”.C An error at line 5 cause compilation to fail.D The program runs but aborts with an exception....
问题:单选题A session-scoped attribute, product, is stored by a servlet. That servlet then forwards to a JSP page. This attribute holds an instance of the com.Company. Product class with a name property of “The Matrix” and price property of 39.95. Given the JSP ...
问题:单选题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)...
问题:多选题A 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?()AStore the data in a vocal variable.BStore the data in an instance variable.CStore the data ...
问题:单选题Which is the valid identifier?()A falseB defaultC _objectD a-class...
问题:单选题A developer wants too use EL to invoke a function using S{my:bloof(“foof”)}. Which is always true?()A The method invoked by this function must be statie.B The function class must implement the Function interface.C The expression is NOT a valid EL ex...
问题:多选题Upon a user’s first visit to the website, which two operations are always performed when the getSession method is called with no arguments in a servlet?()AAll URLs returned by the server are rewritten.BAn HttpSession object is created if necessary.CThe...
问题:单选题Which thefollowingstatements about static inner classes is true?()A An anonymous class can be declared as static.B A static inner class cannot be a static member of the outer class.C A static inner class does not require an instance of the enclosing...
问题:单选题In form-based authentication, what must be included in the HTML returned from the URL specified by the element?()A a base-64 encoded user name and passwordB a form that POSTs to the j_security_check URLC an applet that requests the user name and pa...
问题:多选题Which two are valid declarations of char?()AChar ch = “a”;Bchar ch = “”;Cchar ch = “café”;Dchar ch = “ucafe”;Echar ch = “ucafe’;Fchar ch = “u10100’;Gchar ch = (char) true;...