Answer Posted / qim2010
The destroy() method and other servlet lifecycle methods are called by the servlet container, so it would be a serious error if the servlet container did not call the destroy() method as it takes a servlet out of service. Normally your application code should not call servlet lifecycle methods. It is not advisable for your application code to call the destroy() method directly, it would be confusing and potentially destructive, so it is not a problem if your application does not call the method at all.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the difference between RMI and Servlets?
How do you communicate in between Applets and Servlets?
Explain session tracking and its importance?
What are the supporting protocol by HttpServlet ?
How do you configure a centralized error handler in servlets?
Which application server is best for java?
How do I use cookies to store session state on the client?
How many objects of a servlet is created?
What are the steps involved in placing a servlet within a package?
What do you mean by cgi and what are its drawbacks?
Tell us something about servletcontext interface.
What is the difference between the include() and forward() methods?
What are the types of Session Tracking ?
How to make sure a servlet is loaded at the application startup?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?