For a given Java servlet,which of the following events typically result(s) in the termination of the servlet?I.The servlet completes a request and forwards its response to the server.II.The server sends a servlet's response to a client.(a) None(b) II
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 09:07:31
For a given Java servlet,which of the following events typically result(s) in the termination of the servlet?I.The servlet completes a request and forwards its response to the server.II.The server sends a servlet's response to a client.(a) None(b) II
For a given Java servlet,which of the following events typically result(s) in the termination of the servlet?
I.The servlet completes a request and forwards its response to the server.
II.The server sends a servlet's response to a client.
(a) None
(b) II only
(c) I only
(d) I and II
请说明,
同志们,none
For a given Java servlet,which of the following events typically result(s) in the termination of the servlet?I.The servlet completes a request and forwards its response to the server.II.The server sends a servlet's response to a client.(a) None(b) II
这道题很明显选a,楼上的不知道别误人子弟!
题目原意:
对于一个指定的servlet,下列那个事件通常能导致servlet的终结?
I servlet完成一个请求,并将响应转发给服务器
II 服务器将servlet产生响应发送给客户端
I ,II,这两个事件都发生的servlet生命周期的中间阶段,也就是service()方法在不同的线程中被执行的阶段,两个事件都不会使得servlet终结,servlet终结一般是由于另外两个原因,其一是因为这个servlet在相当长的一段时间里没有被访问过,其二是服务器重启.