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 class.
D. Instance member of a static inner class can be referenced using the class name of the staticinner class.
您可能感兴趣的试卷
你可能感兴趣的试题
A. An inner class may be declared as static.
B. An anonymous inner class can be declared as public.
C. An anonymous inner class can be declared as private.
D. An anonymous inner class can extend an abstract class.
E. An anonymous inner class can be declared as protected.
A. The tag is invoked without a body.
B. The doTAb method throws an exception.
C. The
D. The tag is called with the attribute skip-body=true
A. GET
B. INFO
C. HEAD
D. TRACE
E. OPTIONS
Which statement inserted at line II, retrieves the text from the second text field?()
A. second = request.getParameter (“foo”):
B. second = request.getParameter (“foo”, 1):
C. second = request.getParameter (“foo”,2):
D. second = request.getParameter (foo”) [1]:
E. second = request.getParameter Values (“foo”) [1]:
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):
A. request.add Cookie (“username”. “joe”)
B. request.set Cookie (“username, “joe”)
C. response.add Cookie (username”, “joe”))
D. request.add Header (new Cookie (“username”, “joe”))
E. request.add Cookie (new Cookie (“username”, “joe”))
F. response.add Cookie (new Cookie (“username”, “joe”))
G. response.add Header (new Cookie (“username”, “joe”))
Which statement. At line 16, retrieves an Input Stream for the file / WEBINF/myresrc.bin?()
A. ctx.get put Stream (“/WEB-INF/myresrc.bin”):
B. ctx.get Input Stream (“/WEB-INF/myresrc.bin”):
C. ctx.get Resource As Stream (“/WEB-INF/myresrc.bin”):
D. new Input Stream (new Url (“/WEB-INF/myresrc.bin”):
E. Get Class (). Get Resource As Stream (“/WEB-INF/myresrc.bin”):
Which two are true about the tag handler referneed by my Tag. ()
A. The do Start Tag method is called once.
B. The do After Body method is NOT called.
C. The EVAL_Page constant is a valid return value for the do End Tag Method.
D. the EVAL_BODY_BUFFERED constant is a valid return value for the do Start Tag method.
What is the result?()
A. The output is X = 6 y = 0
B. The output is x = 7 y = 0
C. The output is x = 6 y = -1
D. The output is x = 7 y = -1
E. Compilation will fail.
What is the result?()
A. the program runs and prints nothing.
B. The program runs and prints “Finally”.
C. The code compiles. But an exception is thrown at runtime.
D. the code will not compile because the catch block is missing.
最新试题
Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()
Given that session is a valid HttpSession object: Int max = session.getAttribute(“MyReallyLongName”); Which is true?()
Which three are guaranteed to be valid for the element of a web application deployment descriptor?()
Which two are true()
A developer is designing a web application which extensively uses EJBs and JMS. The developer finds that there is a lot of duplicated code to build the JNDI contexts to access the beans and queues. Further, because of the complexity, there are numerous errors in the code. Which J2EE design pattern provides a solution for this problem?()
Which is the true choice about the web container request processing model()?
Given the HttpServlet code: getServletContext().setAttribute(“foo”, “value”);What is the result?()
Which the two are characteristics of the Service Locator pattern?()
Which statement, at line 16, retrieves an InputStream for the file /WEBINF/ nyresrc.bin()?
Which the three interfaces need to be declared in the web application deployment descriptor? ()