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 |
If some new data has entered the database, explain how can a servlet refresh automatically?
Write a hello world program using servlets.
What are the functions of Servlet container?
List out difference between a JavaBean from a Servlet?
How do you deal property files in servlet?
Why is http protocol called as a stateless protocol?
When we don't write any constructor for the servlet, how does container create an instance of servlet?
What are the exceptions thrown by servlets? Why?
What is java servlet?
Which method the Servlet container call to create the instance of the servlet?
16 Answers emc2, JK Technosoft,
request parameter how to find whether a parameter exists in the request object?
What if we pass negative value in load-on-startup?