A.java.lang.StackOverflowError
B.java.lang.IllegalStateException
C.java.lang.ExceptionInInitializerError
D.java.lang.ArrayIndexOutOfBoundsException
第1题:
Given:11.publicclassMyServletextendsHttpServlet{12.publicvoidservice(HttpServletRequestrequest,13.HttpServletResponseresponse)14.throwsServletException,IOException{15.//insertcodehere16.}17.}andthiselementinthewebapplication’sdeploymentdescriptor:<error-page><error-code>302</error-code><location>/html/error.html</location></error-page>Which,insertedatline15,causesthecontainertoredirectcontroltotheerror.htmlresource?()
A.response.setError(302);
B.response.sendError(302);
C.response.setStatus(302);
D.response.sendRedirect(302);
E.response.sendErrorRedirect(302);
第2题:
第3题:
Error和Exception的区别是:
A.error只程序执行出错,exception则是逻辑不完善。
B.error发生后程序会出错,exception发生后不影响程序执行。
C.error发生后程序会退出执行,exception发生后有可能继续执行。
D.只要设计合理,error和exception都可以被捕获。
第4题:
error和exception有什么区别?
第5题:
exception类中有哪个函数?
A.which()
B.what()
C.when()
D.where()
第6题:
4、exception类中有哪个函数?
A.which()
B.what()
C.when()
D.where()