Can I override destroy() method of Servlets?
Answer Posted / mohd adnan
yes off course we can override the destroy(), method. There is confusion between us, as many of us thinks destroy method call destroy the servlet, however this interpretation is wrong. calling destroy method is only call to the last method before servlet dies. it never destroy servlet.
--------- By Mohd Adnan MCA IMS Ghaziabad
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are the mechanisms used by a servlet container for maintaining session information?
What are the annotations used in servlet 3?
What is the need of servlet filters?
What is servlet and its life cycle?
What is session tracking?
Explain the concept of ssi ?
What is the use of welcome-file-list?
Why is a constructor needed in a servlet even if we use the init method?
What is a servlet engine?
Difference between get and post in java servlets?
What is a cookie What is the difference between session and cookie
Can you create a deadlock condition on a servlet?
What are common tasks performed by Servlet Container?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
What are the different methods involved in the process of session management in servlets?