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 upload the file to the server using servlet?

539


What are the difference between RMI and Servlets?

1045


What are the different types of servlets?

511


What do you mean by session tracking and also explain its techniques?

492


How to get the path of servlet in the server?

531






What is servlet configuration?

518


When Servlet is unloaded?

623


What is meant by a servlet?

600


What are different Authentication options available in Servlets.

561


What is the procedure for initializing a servlet?

543


Can a jsp be called using a servlet?

578


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

639


How to rectify errors in java servlet while compilation?

515


What are the kinds of http requests?

603


Where do you define dispatcherservlet?

550