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

What are the key methods that are involved in processing of http servlets?

627


List the Different types of servlet?

589


What is difference between get and post method?

574


Why is a constructor needed in a servlet even if we use the init method?

612


What do you mean by servlet context?

607






List some life cycle methods of a servlet.

592


How can you push data from an Applet to a Servlet?

609


What is difference between PrintWriter and ServletOutputStream?

776


Explain the jar and war files in servlet?

557


What are different Authentication options available in Servlets.

569


What is the difference between Difference between doGet() and doPost()?

759


What are the different mode that servlets can be used?

557


How to get the path of servlet in the server?

541


What are different methods of session management in servlets?

780


Is it possible to have a constructor inside the servlet?

554