Answer Posted / 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 View All Answers
Is tomcat a servlet container?
How servlet is created?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
How many objects of a servlet is created?
What if we pass negative value in load-on-startup?
What is the difference between 2 types of servlets?
Explain how to improve Servlet Performance?
How can you create a session in servlet?
What is servletconfig?
How does java thread pool work?
What is the need of session tracking in web application?
Which event is fired at the time of setting, getting or removing attribute from application scope?
What are the benefits of using servlet over cgi?
What is generic servlet class?
Explain the concept of ssi ?