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 is difference between get and post method?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
How can the session in servlet can be destroyed?
What are the different methods involved in generic servlet?
What if you need to span your transaction across multiple servlet invocations?
Where do you define dispatcherservlet?
How to find whether a parameter exists in the request object?
How to handle exceptions thrown by application with another servlet?
What are the different methods of session management in servlets?
How do we share data using 'getservletcontext ()?
What are the ways to handle multi-threading in servlets?
Is it possible to have a constructor inside the servlet?
What are all the ways for session tracking?
Can we use threads in Servlets?
How do you find out what client machine is making a request to your servlet