当前分类: SCDCD(310-081)
问题:单选题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 HTTP method represents a request for information about the supported methods on an HTTP server?()A GETB INFOC HEADD TRACEE OPTIONS...
问题:单选题Squeaky Beans Inc. hired an outside consultant to develop their web application. To finish the job quickly, the consultant created several dozen JSP pages that directly communicate with the database. The Squeaky business team has since purchased a set ...
问题:单选题When adding a element to a web application deployment descriptor, the inclusion of which sub-element requires the definition of an error page()?A realm-name B auth-metod C auth-constraint D form-login-config E user-data-constaint...
问题:单选题When using a form-based authentication, which action must be used in the login form?()A j_loginB j_get_userC j_login_checkD j_get_securityE j_security_check...
问题:单选题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...
问题:多选题Which four types of object can be thrown using the throw statement?()AErrorBEventCObjectDExceptionEThrowableFRuntime Exception...
问题:单选题Which element of a web application deployment descriptor element is required()?A realm-name B auth-method C security-role D transport-guarantee E web-resource-collection...
问题:多选题Given: 1. public class Method Over { 2. public void set Var (int a, int b, float c) { 3. } 4. } Which two overload the set Var method()?Aprivate void set Var(int a, float c, int b) {}Bprotected void set Var(int a, int b, float c) {}Cpublic int se...
问题:单选题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...
问题:单选题A developer is designing a multi-tier web application and discovers a need to log each incoming client request. Which two patterns, taken independently, provide a solution for this problem? ()A Transfer ObjectB Service LocatorC Front ControllerD In...
问题:单选题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?()A public void valueUnbound(HttpSessi...
问题:多选题Which the two are true about the JSTL core iteration custom tags?()AIt may iterate over arrays, collections, maps and strings.BThe body of the tag may contain EL code, but not scripting code.CWhen looping over collections, a loop status object may be u...
问题:单选题What is the result()?A The program runs and prints “ I = 1 , j = 0”B The program runs and prints “ I = 1 , j = 4”C The program runs and prints “ I = 3 , j = 4”D The program runs and prints “ I = 3 , j = 0”E An error at line 4 cause compilatio...
问题:单选题Which is the valid identifier?()A falseB defaultC _objectD a-class...
问题:单选题Which retrieves the binary input stream on line 13?()A request.get Writer ():B request.get Reader ():C request.get Input Stream():D request.get Resource As Stream():E request.get Resource As Stream (Servlet Request. REQUEST):...
问题:单选题1. class A { 2. public byte file Number ( ) { 3. return l; 4. } 5. } 6. 7. Class B extends A { 8. public short getNumber( ) { 9. return 2; 10. } 11. 12. public short getNumber( ) { 13. B b = new B( ); 14. System.out.printIn(b.getNumber( ))...
问题:多选题A JSP page needs to instantiate a JavaBean to be used by only that page. Which two jsp:useBean attributes must be used to access this attribute in the JSP page?()AidBtypeCnameDclassEscopeFcreate...
问题:单选题Which HTTP method represents a request for information about the supported methods on an HTTP server?()A GETB INFOC HEADD TRACEE OPTIONS...