网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

Given: 11.public class MyServlet extends HttpServlet { 12.public void service(HttpServletRequest request, 13.HttpServletResponse response) 14.throws ServletException, IOException { 15.// insert code here 16.} 17.} and this element in the web application’s deployment descriptor: 302 /html/error.html Which,inserted at line 15,causes the container to redirect control to the error.html resource?()

  • A、response.setError(302);
  • B、response.sendError(302);
  • C、response.setStatus(302);
  • D、response.sendRedirect(302);
  • E、response.sendErrorRedirect(302);

参考答案

更多 “ Given: 11.public class MyServlet extends HttpServlet { 12.public void service(HttpServletRequest request, 13.HttpServletResponse response) 14.throws ServletException, IOException { 15.// insert code here 16.} 17.} and this element in the web application’s deployment descriptor: 302 /html/error.html Which,inserted at line 15,causes the container to redirect control to the error.html resource?()A、response.setError(302);B、response.sendError(302);C、response.setStatus(302);D、response.sendRedirect(302);E、response.sendErrorRedirect(302);” 相关考题
考题 为了区分重载多态中同名的不同方法,要求()A、参数名不同B、采用不同的形式参数列表C、返回值类型不同D、选项都对

考题 如何在框架中显示标题?()   A、 调用根窗格的set Title 函数显示B、 调用内容窗格的setTitle函数显示C、 调用框架对象的setTitle函数显示D、 调用框架对象的Border对象的setTitle函数显示

考题 11. public void genNumbers() {  12. ArrayList numbers = new ArrayList();  13. for (int i=0; i10; i++) {  14. int value = i * ((int) Math.random());  15. Integer intObj = new Integer(value);  16. numbers.add(intObj);  17. }  18. System.out.println(numbers);  19. }  Which line of code marks the earliest point that an object referenced by intObj becomes a candidate for garbage collection?() A、 Line 16B、 Line 17C、 Line 18D、 Line 19E、 The object is NOT a candidate for garbage collection.

考题 Java语言中常量的定义是哪项?()A、 public staticB、 public static finalC、 finalD、 public static abstract

考题 现有  public  class  Demo{  public  static void main (String[]  args){     List al=new ArrayList();      a1.add("l");      a1.add("2");      a1.add("2");      a1.add("3");  System.out.println (al);     }     }  上述程序执行后的输出是哪项?()    A、  [1,2,3]B、  [1,2,3,3]C、   [1,2,2,3]D、  [2,1,3,2]

考题 如果不使用布局管理器,会出现哪些问题?()A、当界面缩放时,会失去原有的外观;B、当界面最小化时,组件不会最小化;C、当界面缩放时,组件会随机地移动;D、高分辨率下设计的界面,在低分辨率下可能会超出桌面范围,从面无法看到;E、对每一个组件,都需要指定它的坐标位置;

考题 Given the JSP code: 10. 11. 12. 13.Hello, ${customer.title} ${customer.lastName}, welcome 14.to Squeaky Beans, Inc. 15.16.  Which three types of JSP code are used?()A、Java codeB、Template textC、Scripting codeD、Standard actionE、Expression language

考题 You want a class to have access to members of another class in the same package. Which is the most restrictive access modifier that will accomplish that will accomplish this objective?()A、 PublicB、 PrivateC、 ProtectedD、 TransientE、 No access modifier is required.