题目内容

若 int x=10;执行完下列程序后,i的结果是()switch(i){ case 9: i+=1; case 10:i+=1; case 11:i+=1; default: i+=1; }

A. 10
B. 11
C. 12
D. 13

查看答案
更多问题

当a=1,b=3,c=5,d=4时,执行完下面程序后x的值是()if(a

A. 1
B. 2
C. 3
D. 4

从HTTP请求中,获得请求参数,应该调用哪种方法?()

A. 调用HttpServletRequest对象的getAttribute()方法
B. 调用ServletContext对象的getAttribute()方法
C. 调用HttpServletRequest对象的getParameter()方法
D. 调用HttpSession对象的getAttribute()方法

假设在web.xml中定义了以下内容: GoodBye cc.openhome.LogoutServlet GoodBye /goodbye 则以下哪一项可以正确访问该Servlet?

A. /goodbye.servlet
B. /LogoutServlet
C. /goodbye
D. /GoodBye

假设在web.xml中定义了以下内容: Goodbye cc.openhome.LogoutServlet Goodbye /goodbye 则以下哪一项可以正确访问该Servlet?

A. /goodbye.servlet
B. /LogoutServlet
C. /goodbye
D. /GoodBye

答案查题题库