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


Please Help Members By Posting Answers For Below Questions

How do we share data using 'getservletcontext ()?

512


What are the life cycle methods of a servlet?

573


What do you mean by deployment descriptor?

531


When jsessionid is created?

586


Why the concept of single thread model interface is used?

532






Explain the jar and war files in servlet?

535


How do we call one servlet from another servlet?

574


What is the purpose of dispatcherservlet properties?

490


What are its drawbacks of cgi?

548


What's the difference between servlets and applets?

524


How servlets are deployed in java?

522


What are the different mode that servlets can be used?

532


What are the different methods of session management in servlets?

522


Write a servlet to upload file on server.

579


Explain the difference between servletconfig and servletcontext in servlet?

544