问题:单选题} What is the result?()A Compilation succeeds and 1 is printed.B Compilation succeeds and 2 is printed.C An error at line 8 causes compilation to fail.D An error at line 14 causes compilation to fail....
查看答案
问题:单选题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...
问题:多选题Which the two JSTL URL-related tags perform URL rewriting?()AurlBlinkCparamDimportEredirect...
问题:单选题Which is the valid identifier?()A falseB defaultC _objectD a-class...
问题:单选题Which security mechanism is employed only on the server-side to limit access to resources or components?()A authorizationB data integrityC confidentialityD authentication...
问题:单选题Which interface must a class implement to be informed of a session creation event?()A javax.servlet.http.HttpSessionListenerB javax.servlet.http.HttpSessionBindingListenerC javax.servlet.http.HttpSessionCreationListenerD javax.servlet.http.HttpSess...
问题:多选题Which two are characteristics of the Intercepting Filter pattern?()Ait provides centralized request handling for incoming requests.BIt forces resource authentication to be distributed across web components.CIt reduces coupling between presentation-tier...
问题:单选题Which the HTTP method represents a request for information about the supported methods on an HTTP server?()A GETB INFOC HEADD TRACEE OPTIONS...
问题:单选题Given an HttpServlet Request request and Http Servlet Response response, which sets a cookie “username” with the value “joe” in a servlet.?()A request.add Cookie (“username”. “joe”)B request.set Cookie (“username, “joe”)C response.add Cookie (userna...
问题:多选题For which three events can web application event listeners be registered? ()Awhen a session is createdBafter a servlet is destroyedCwhen a session has timed outDwhen a cookie has been createdEwhen a servlet has forwarded a requestFwhen a session attrib...
问题:多选题Which two are true about the tag handler referneed by my Tag. ()AThe do Start Tag method is called once.BThe do After Body method is NOT called.CThe EVAL_Page constant is a valid return value for the do End Tag Method.Dthe EVAL_BODY_BUFFERED constant i...
问题:单选题Company.com has decided to use the FUBAR Application Server to host their web application. Unfortunately, the FUBAR Application Server uses the server machine’s file system for its JNDI namespace. Every JNDI lookup performed in the web application is t...
问题:多选题Given a web application in which the request parameter product ID contains a product identifier.Which two EL expressions evaluate the value of the product ID?()A${product ID}B${param.productID}C${params.productID}D${params.productID[1]}E${paramvalues.p...
问题:单选题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...
问题:单选题Given: 8.int index = 1: 9.Boolean [] test = new boolcan [3]; 10.boolcan foo = test [index]; What is the result()?A foo has the value of 0.B foo has the value of null.C foo has the value of true.D foo has the value of false.E An-exception is t...
问题:多选题For a given Servlet Response response, which two retrieve an object for writing text data? ()Aresponse.get Writer ()Bresponse.get Output Stream ()Cresponse.get Output Writer ()Dresponse.get Writer ().get Output Stream()Eresponse.get Writer (Writer.OUTP...
问题:单选题What is the result?()A foo has the value””B foo has the value null.C An exception is thrown.D The code will not compile....
问题:单选题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...