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

can we override service method in my servlet class..?? if yes or no why ??

7 Answers   IBM,


What is the use of httpservletrequestwrapper?

0 Answers  


if we know the any consultancies, it will place in company work through consultancy(contract base). please help me I'm 2008 pass out java candidate...

1 Answers  


What are the functions of Servlet container?

0 Answers  


What is java servlet session?

0 Answers  






what are the way a client can be tracked?

3 Answers   ABC, IBM,


Describe servlet?

0 Answers  


What is the importance of init() method in Servlet ?

0 Answers   BirlaSoft,


Explain request dispatcher and its methods.

0 Answers  


can i call destroy() method in init() method of servlet

9 Answers   Ericsson, IBM,


What if we pass negative value in load-on-startup?

0 Answers  


What is DSN and System DSN and what is the difference between them?

2 Answers  


Categories