单项选择题
给定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
点击查看答案&解析
相关考题
