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
What’s the difference between sendredirect and forward methods
Which interface should be implemented by all servlets?
What is the difference between Servlets and Applets?
How do you load an image in a Servlet?
How do you communicate in between Applets and Servlets?
Why servlet is mostly used?
Given the request path below, which are context path, servlet path and path info?
What are the different types of servlets?
What do you mean by session tracking?
What is meant by a servlet?
Should I override the service() method?
What is called Session Tracking?
What is a servlet context object?
What are the uses of servlet
What is servlet and its types?