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 the difference between portlet and servlet?
Is it good idea to create servlet constructor?
What is the life cycle of a servlet?
What do you mean by the servlet chaining?
Describe the phases of servlet lifecycle?
Why servlet is mostly used?
Can we use the constructor, instead of init(), to initialize servlet?
Explain url encoding in servlet?
What’s the use of the servlet wrapper classes??
Explain the difference between generic servlet and http servlet?
What are the life-cycle methods for a servlet?
Is dispatcher servlet a singleton?
How do you run a servlet?
What are the disadvantages of storing session state in cookies?
How can you create a session in servlet?