Answer Posted / venkatesh k
destroy() is not realted to garbage collection. As per
servlet life cycle destroy method is one of compulsary
method.it is automatically invoked by Container.Internallly
we may use garbage collection means reclaim the memory.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is a servlet-to-servlet communcation?
Why jsp is better than servlet?
What is lazy loading and what is Generic Servlet Class?
Why do we need a constructor in a servlet if we use the init method?
What do you mean by singlethreadmodel interface?
how many jsp scripting elements are there and what are those?
What is the requirement of servlet config and servlet context implemented and how are they implemented?
Why don't we write a constructor in a servlet?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
How httpservlet is different from the genericservlet?
Explain jsessionid and when is it created?
How do you define a servlet?
How a servlet is unloaded?
What is difference between get and post method?