In which cases Destroy() is invoked?
Answers were Sorted based on User's Feedback
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 |
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 |
Difference between get and post in java servlets?
What do you mean by session tracking and also explain its techniques?
How to pass a requrest object of one servlet as a request object to another servlet?
How do you run a servlet?
How to get the current httpsession object?
What is the default http method in the servlet?
What is context in servlet?
How do you communicate in between Applets and Servlets?
How to maintain security in servlets?
What are the advantages of cookies?
what are binding listners?
What are the types of servlets? Explain