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 the use of httpservletrequestwrapper?
What is the main purpose of java servlets?
What is string tokenizer?
Explain the role of dispatcherservlet and contextloaderlistener.
How to get the IP address of client in servlet?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
What is meant by cookies?
Explain the difference between jsp and servlet?
What is the use of httpservletresponsewrapper?
How can we implement a jsp page?
What are the uses of servlet and what is servlet chaining?
Why do we need a constructor in a servlet if we use the init method?
Why servlet is used as controller ? Not JSP? I want complete explation?
Servlet is pure java object or not?
How is the get () method different from the post() method?