what happens if we wont use destroy()?

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


Please Help Members By Posting Answers For Below Questions

How can we achieve transport layer security for our web application?

571


What is servlet and its advantages?

527


Explain the differences between jsp and servlet.

544


What do you mean by request dispatcher in servlet?

610


What is MIME Type?

663






Whether we can get deadlock situation in servlets?

578


What are the phases of the servlet life cycle?

609


What is the inter-servlet communication?

702


What is api in servlet?

523


List out difference between a JavaBean from a Servlet?

566


How can a servlet be used to generate plain text instead of html?

543


What is meant by session? Tell me something about httpsession class?

601


How to read request headers from servlets?

562


How can we implement a jsp page?

630


What are Servlets?

596