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 is servlet looping or chaining?
Can we get PrintWriter and ServletOutputStream both in a servlet?
Which is the methods of generated servlet?
What is the use of request dispatcher interface?
What is the inter-servlet communication?
Explain load on start-up and its importance?
Can filter be used as request or response?
What is new in ServletRequest interface ? (Servlet 2.4)
Is that servlet is pure java object or not?
What is meant by servlet? What are the parameters of the service method?
What are Servlets?
How printwriter is different from servletoutputstream?
what is servlet chaining?
What is servlet? Explain
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?