Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is a servlet-to-servlet communcation?

1181


Why jsp is better than servlet?

1035


What is lazy loading and what is Generic Servlet Class?

1085


Why do we need a constructor in a servlet if we use the init method?

1053


What do you mean by singlethreadmodel interface?

1052


how many jsp scripting elements are there and what are those?

1019


What is the requirement of servlet config and servlet context implemented and how are they implemented?

1006


Why don't we write a constructor in a servlet?

1057


When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

1063


What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

1117


How httpservlet is different from the genericservlet?

1133


Explain jsessionid and when is it created?

1122


How do you define a servlet?

989


How a servlet is unloaded?

1091


What is difference between get and post method?

1085