Tuesday, November 29, 2011

What will happen when we call the destroy method in the init method? will the servlet exist?

The destroy method is not called as it is considered unsuccessful initialization. During initialization, the servlet instance can throw an UnavailableException or a ServletException. In this case, the servlet must not be placed into active service and must be released by the servlet container.
Category:Servlet Interview Questions

No comments:

Post a Comment