给定如下所给的java sevelet代码片段,用户在浏览器地址栏中键入正确的URL回车后,在控制台上显示的结果是:( ) public void doGet(HttpServletRequest request, HttpServletRespon

admin2017-01-26  34

问题 给定如下所给的java sevelet代码片段,用户在浏览器地址栏中键入正确的URL回车后,在控制台上显示的结果是:(    )
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”);
}
public void service(HttpServletRequest request, HttpServletResponse response)
   throws ServletException, IOException {
  System.out,println(“service”);
}

选项 A、 get
B、service
C、service
D、service  get

答案D

解析
转载请注明原文地址:https://jikaoti.com/ti/im0iFFFM
0

最新回复(0)