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
How do we share data using 'getservletcontext ()?
What are the life cycle methods of a servlet?
What do you mean by deployment descriptor?
When jsessionid is created?
Why the concept of single thread model interface is used?
Explain the jar and war files in servlet?
How do we call one servlet from another servlet?
What is the purpose of dispatcherservlet properties?
What are its drawbacks of cgi?
What's the difference between servlets and applets?
How servlets are deployed in java?
What are the different mode that servlets can be used?
What are the different methods of session management in servlets?
Write a servlet to upload file on server.
Explain the difference between servletconfig and servletcontext in servlet?