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 different methods involved in the process of session management in servlets?

759


What's the difference between authentication and authorization?

636


What do you mean by interservlet communication?

677


What's the advantages using servlets than using cgi?

634


What is ServletContext object?

729






Why servlet is used as controller ? Not JSP? I want complete explation?

757


How to find whether a parameter exists in the request object?

752


Why is httpservlet declared abstract?

669


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

627


What is the functionality of actionservlet and requestprocessor?

680


What are the life cycle methods of the servlet?

677


What do you mean by cgi in servlet?

714


What is the use of httpservletresponsewrapper?

619


What are some disadvantages of storing session state in cookies?

669


What is string tokenizer?

706