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
What are the key methods that are involved in processing of http servlets?
List the Different types of servlet?
What is difference between get and post method?
Why is a constructor needed in a servlet even if we use the init method?
What do you mean by servlet context?
List some life cycle methods of a servlet.
How can you push data from an Applet to a Servlet?
What is difference between PrintWriter and ServletOutputStream?
Explain the jar and war files in servlet?
What are different Authentication options available in Servlets.
What is the difference between Difference between doGet() and doPost()?
What are the different mode that servlets can be used?
How to get the path of servlet in the server?
What are different methods of session management in servlets?
Is it possible to have a constructor inside the servlet?