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

What is http servlet? Explain with the help of an example.

0 Answers  


What are the new features added to servlet 2.5?

0 Answers  


Explain the different ways for servlet authentication?

0 Answers  


Explain servlet.

0 Answers  


How many ways are available to ger RequestDispatcher object?

4 Answers   Polaris,






what is a session object?

2 Answers  


Explain the custom jsp tags and the beans.

0 Answers  


What are the advantages of cookies?

0 Answers  


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

4 Answers   Verizon,


What is the procedure of invoking different servlet in a different application?

0 Answers  


what is the difference between ServletContext and ServletConfig

7 Answers  


When jsessionid is created?

0 Answers  


Categories