Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

When jsessionid is created?

0 Answers  


What are the parameters of the service method ?

2 Answers  


What are the supporting protocol by HttpServlet ?

0 Answers  


How two servlets communicate with each other?

2 Answers  


What is a servlet context object?

0 Answers  






how the server will know its the same jsp page?

3 Answers   HCL,


What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

0 Answers  


How to handle exceptions thrown by application with another servlet?

0 Answers  


What is Generic Servlet and how it is different from Http Servlet?

5 Answers   Wipro,


What do you mean by deployment descriptor?

0 Answers  


What do you mean by httpservlet?

0 Answers  


What is httpservlet class?

0 Answers  






Categories