当前分类: SCDCD(310-081)
问题:多选题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;...
查看答案
问题:单选题What is the result()?A 2B 4C 8D 16E The code will not compile....
问题:单选题Which option prevents the exception thrown by my:errorProne from invoking the error page mechanism and outputs the message "File not found" in the response?()A AB BC CD DE E...
问题:单选题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 ...
问题:多选题Which the two are true regarding a web application class loader?()AA web application may override the web container’s implementation classesBA web application running in a J2EE product may override classes in the javax.* namespaceCA web application cla...
问题:单选题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 design pattern provides a solution for this problem?( )A Sess...
问题:单选题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)...
问题:单选题What is the numerical range of char?()A 0…32767B 0…65535C –256…255D 32768…32767E Range is platform dependent....
问题:多选题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...
问题:多选题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( ...
问题:单选题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...
问题:多选题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 HTTP method has the characteristic that multiple indential requests may produce side effect beyond those of a single request()?A PUTB GETC INFOD POSTE HEADF TRACE...
问题:单选题Which will declare the method that forces a subclass to implement it?()A public double methoda ():B static void methoda(double d1) {}C public native double methoda ():D abstract public foid methoda ():E protected void methoda (double d1) {}...
问题:单选题For a given ServletResponse response, which retrieves an object for writing binary data?()A response.getWriter()B response.getOutputStream()C response.getOutputWriter()D response.getWriter().getOutputSTream()E response.getWriter(Writer.OUTPUT_BINA...
问题:单选题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...
问题:单选题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...
问题:单选题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...
问题:多选题Which two security mechanisms protect the response stream?()AauthorizationBdata integrityCconfidentialityDauthentication...