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
Define the life cycle of a servlets.
What are the difference between RMI and Servlets?
Given the request path below, which are context path, servlet path and path info?
Name the different ways of session tracking.
How can we implement a jsp page?
When servlet object is created?
Why HttpServlet class is declared abstract?
What do you mean by default initialization in java servlet?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
What do you mean by mime type?
What is the need of servlet filters?
Why jsp is better than servlet?
Whats the advantages using servlets over using CGI?
Which application server is best for java?
How can you use a servlet to generate a plain text instead of html?