本帖最后由 崔芝鲁 于 2013-3-13 10:29 编辑
定某程序的片断如下,用户在浏览器地址栏中键入正确的请求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”);
}
A get
B post
C get Post
D post Get
参考答案:A
为什么post不执行呢? |
|