In which cases Destroy() is invoked?

Answers were Sorted based on User's Feedback



In which cases Destroy() is invoked?..

Answer / n.l.narayana

destroy() method is invoked automatically when ever the
servlet object is removed from the webcontainer
(Tomcat,weblogic,....)

Is This Answer Correct ?    4 Yes 0 No

In which cases Destroy() is invoked?..

Answer / shakir khan

When server wants to remove the servlet from pool,it will
execute the destroy().

destroy() is invoked,when servlet is unloaded from
memory.This is a good place to clean up any resources(Such
as open files or database connections).

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Servlets Interview Questions

Difference between get and post in java servlets?

0 Answers  


What do you mean by session tracking and also explain its techniques?

0 Answers  


How to pass a requrest object of one servlet as a request object to another servlet?

4 Answers   Verizon,


How do you run a servlet?

0 Answers  


How to get the current httpsession object?

0 Answers  






What is the default http method in the servlet?

0 Answers  


What is context in servlet?

0 Answers  


How do you communicate in between Applets and Servlets?

0 Answers  


How to maintain security in servlets?

2 Answers  


What are the advantages of cookies?

0 Answers  


what are binding listners?

1 Answers  


What are the types of servlets? Explain

0 Answers  


Categories