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 type of protocols used in httpservlet?
What is http servlet?
What if we pass negative value in load-on-startup?
Why do we have servlet listeners?
What are the life cycle methods of a servlet?
What are Servlets?
How do you create a cookie using servlet?
What is a servlet context?
Can we refresh servlet in client and server side automatically?
How can you start a jta transaction from a servlet deployed on jboss?
When jsessionid is created?
What do you mean by interservlet communication?
What is the use of welcome-file-list?
Why are http servlets used in programming?
What is servlet initializer?