更多“编写Servlet的doPost方法时,需要抛出的异常是() ”相关问题
  • 第1题:

    下列异常中,哪些是在Servlet中重写doGet(),doPost()方法时抛出的异常()

    A.ServletException

    B.HttpServletException

    C.HttpException

    D.IOException


    ServletException;IOException

  • 第2题:

    在编写Servlet时,需要继承HttpServlet类,在Servlet中声明doGet()和doPost(),需要HttpRequest和__________类型的两个参数。


    HttpServlet

  • 第3题:

    编写Servlet 的doPost方法时,需要抛出异常为()。

    A.ServletException, IOException

    B.ServletException, RemoteException

    C.HttpServletException, IOException

    D.HttpServletException, RemoteException


    A

  • 第4题:

    在编写Servlet时,需要继承_________类,在Servlet中声明doGet()和doPost()需要 HttpRequest 和 HttpResponse 类型的两个参数。


    HttpServlet;HttpRequest;HttpResponse

  • 第5题:

    7、编写Servlet 的doPost方法时,需要抛出异常为()。

    A.ServletException, IOException

    B.ServletException, RemoteException

    C.HttpServletException, IOException

    D.HttpServletException, RemoteException


    ServletException, IOException