作业帮 > 综合 > 作业

For a given Java servlet,which of the following events typic

来源:学生作业帮 编辑:灵鹊做题网作业帮 分类:综合作业 时间:2024/03/29 15:10:12
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 typic
这道题很明显选a,楼上的不知道别误人子弟!
题目原意:
对于一个指定的servlet,下列那个事件通常能导致servlet的终结?
I servlet完成一个请求,并将响应转发给服务器
II 服务器将servlet产生响应发送给客户端
I ,II,这两个事件都发生的servlet生命周期的中间阶段,也就是service()方法在不同的线程中被执行的阶段,两个事件都不会使得servlet终结,servlet终结一般是由于另外两个原因,其一是因为这个servlet在相当长的一段时间里没有被访问过,其二是服务器重启.