Can I override destroy() method of Servlets?




Answers were Sorted based on User's Feedback



Can I override destroy() method of Servlets?..

Answer / vinod

yes we can do it

Is This Answer Correct ?    13 Yes 1 No

Can I override destroy() method of Servlets?..

Answer / kalyan

yes we can override destroy() method according application
requirement....

Is This Answer Correct ?    7 Yes 0 No

Can I override destroy() method of Servlets?..

Answer / 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




Can I override destroy() method of Servlets?..

Answer / komal singh adhikari

YES,
we can call and override destroy().

Is This Answer Correct ?    4 Yes 1 No

Post New Answer



More Servlets Interview Questions

What is called Scriptlet?

0 Answers  


How many ways to remove the session object in the container

6 Answers   Bosch,


What is http servlet?

0 Answers  


Why do we have servlet listeners?

0 Answers  


What is the difference between Server and Container?

0 Answers  






Who is responsible for writing a constructor?

0 Answers  


How to work with Chinese login page (internationalization).if he enters user name and password in chinese, how is it converted to English and validate in db? And in reverse it should display welcome message in Chinese,if user is valid

4 Answers   Bosch,


Can filter be used as request or response?

0 Answers  


when will cookie information destroy?

7 Answers  


explain filters in java?

2 Answers   TCS,


How will you open a new page after certain interval of time (5 sec), on clicking of a button in an html page?

2 Answers  


What is the purpose of inter-servlet communication?

0 Answers  






Categories