编写Servlet的doPost方法时,需要抛出的异常是() A.ServletException,IOExceptionB.ServletException,RemoteExceptionC.HttpServletException,IOExceptionD.HttpServletException,RemoteException
编写Servlet的doPost方法时,需要抛出的异常是()
A.ServletException,IOException
B.ServletException,RemoteException
C.HttpServletException,IOException
D.HttpServletException,RemoteException
相关考题:
在J2EE中,对于HttpServlet类的描述,正确的是()。 A.我们自己编写的Servlet继承了HttpServlet类,一般只需覆盖doPost或者doGet方法,不必覆盖service()方法。因为一个service()方法是空的B.HttpServlet类扩展了GenericServlet类,实现了GenericServlet类的抽象方法service()C.HttpServlet类有两个service()方法D.我们自己编写的Servlet继承了HttpServlet类,一般只需覆盖doPost或者doGet方法,不必覆盖service()方法。因为一个service()方法会调用doPost或者doGet方法
下列异常中,哪些是在Servlet中重写doGet(),doPost()方法时抛出的异常()A.ServletExceptionB.HttpServletExceptionC.HttpExceptionD.IOException
7、编写Servlet 的doPost方法时,需要抛出异常为()。A.ServletException, IOExceptionB.ServletException, RemoteExceptionC.HttpServletException, IOExceptionD.HttpServletException, RemoteException
编写Servlet 的doPost方法时,需要抛出异常为()。A.ServletException, IOExceptionB.ServletException, RemoteExceptionC.HttpServletException, IOExceptionD.HttpServletException, RemoteException