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 do you mean by servlet context?
Explain mvc pattern.
What are the type of protocols used in httpservlet?
Why are servlets used?
Is servlet a server side scripting language?
What methodology can be followed to store more number of objects in a remote server?
What is the difference in between the httpservlet and generic servlet?
What is java servlet?
Explain jsessionid and when is it created?
How can we achieve transport layer security for our web application?
What is difference between GenericServlet and HttpServlet?
What is session?
What are advantages of servlets over cgi?
What do you mean by scope object and what are its types?
How to rectify errors in java servlet while compilation?