问题:单选题Given that login.getName() returns a java.lang.String value and given the JSP code: Welcome Which is equivalent?()A % Welcome % out.print(login.getName()); % B Welcome % writer.print(login.getName()); % C Welcome % response.out.print(login.getName()...
Wednesday, February 21, 2024
问题:单选题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...
Sunday, April 7, 2024
问题:单选题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...
Monday, April 22, 2024
问题:单选题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...
Wednesday, October 4, 2023
问题:单选题Given an Http Session session. A Servlet Request request. And a Servlet Context context. Which retrieves a URL to /WEB INF/ my config.xml within a web application?()A session.get Resource (“/WEB-INF/myconfig.xml”)B request.get Resource (“/WEB-INF/myc...
Monday, April 8, 2024
问题:多选题A Company.com 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 have become very large. There is also com...
问题:单选题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...
Tuesday, September 5, 2023
问题:单选题A web application uses the HttpSession mechanism to determine if a user is “logged in”. When a user supplies a valid user name and password, an HttpSession is created for that user. The user has access to the application for only 15 minutes after logg...
Thursday, October 20, 2022
问题:多选题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...
Sunday, December 3, 2023
问题:多选题Which the two about WAR files are true?()AWAR files must be located in the web application library directory.BWAR files must contain the web application deployment descriptor.CWAR files must be created by using archive tools to designed specifically fo...
问题:多选题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 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...
Saturday, January 20, 2024
问题:多选题Which the two are concerning the objects available to developers creating tag files?()AThe session object must be declared explicity.BThe request and response objects are available implicity.CThe output stream is available through the implicit outStrea...
Saturday, May 4, 2024
问题:单选题Which is the valid identifier?()A falseB defaultC _objectD a-class...
问题:单选题Which the HTTP method represents a request for information about the supported methods on an HTTP server?()A GETB INFOC HEADD TRACEE OPTIONS...
问题:多选题Which the three are valid declarations of a float?()Afloat foo = -1;Bfloat foo = 1.0;Cfloat foo = 42el:Dfloat foo = 2.02f:Efloat foo = 3.03d:...
Saturday, October 28, 2023
问题:单选题} 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 three occur during JSP page translation?()AThe jspInit method is called.BThe JSP page implementation class is created.CThe JSP page implementation class is compiled.DThe JSP page is validated for syntatic correctness.EThe associated tag files are...
Thursday, February 29, 2024
Wednesday, March 8, 2023