欢迎来到牛牛题库网 牛牛题库官网
logo

单项选择题

 给定Servlet程序的代码如下所示:
public class Servlet1 extends HttpServlet{
public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException IOException{
    System.out.println(“get”);
}
public void doPost(HttpServletRequest request.HttpServletResponse response) throws ServletException,IOException{
        System.out.println(“post”);
        doGet(reauest,response);
    }
}
用户在浏览器地址栏中键入正确的请求URL并回车后,在控制台上显示的结果是 A.
get B.
post C.
get post D.
post get

点击查看答案&解析
微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题