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
Describe the phases of servlet lifecycle?
How to create war file?
What is the use of attribute in servlets?
What do you mean by httpservlet?
Why is init() method is used in servlets?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What is the directory structure of a war file?
What is the difference between Servlets and Applets?
How do servlets work?
What is the use of java servlet api?
Explain the concept of ssi ?
what is servlet chaining?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
What are the objects involved when a servlet receives a call from client?
How httpservlet is different from the genericservlet?