A. public interface Person {} Public class Employee extends Person {}
B. public interface Shape {} public interface Rectangle extends Shape {}
C. public interface Color {} public class Shape { private Color color; }
D. public class Species {} public class Animal { private Species species; }
E. interface Component {} Class Container implements Component {private Component [] children;
您可能感兴趣的试卷
你可能感兴趣的试题
Which two overload the setVar method()
A.A
B.B
C.C
D.D
E.E
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.
最新试题
Which two are true()
A JSP page, current.jsp, is created to display the current weather report. The weather report is contained in a weather.html page that is rewritten every five minutes. Which line, appearing in current.jsp, ensures that the most recent version of weather.html is included whenever current.jsp is referenced?()
Which two are true?()
Which the three interfaces need to be declared in the web application deployment descriptor? ()
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 logging in. The code must determine how long the user has been logged in, and if this time is greater than 15 minutes, must destroy the HttpSession. Which method in HttpSession is used to accomplish this?()
Within the web application deployment descriptor, which defines a valid JNDI environment entry()
Which two authentication mechanisms provide weaker protection than other mechanisms?()
Given the HttpServlet code: getServletContext().setAttribute(“foo”, “value”);What is the result?()
Which the two are characteristics of the Service Locator pattern?()
For a given product instance, which three jsp:setProperty attributes must be used to initialized its properties form the HTML form? ()