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...

In which cases Destroy() is invoked?

Answer Posted / shakir khan

When server wants to remove the servlet from pool,it will
execute the destroy().

destroy() is invoked,when servlet is unloaded from
memory.This is a good place to clean up any resources(Such
as open files or database connections).

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between get and post method?

1008


What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?

1158


How can the session in servlet can be destroyed?

1125


What are the different methods involved in generic servlet?

1043


What if you need to span your transaction across multiple servlet invocations?

1038


Where do you define dispatcherservlet?

990


How to find whether a parameter exists in the request object?

1058


How to handle exceptions thrown by application with another servlet?

1038


What are the different methods of session management in servlets?

946


How do we share data using 'getservletcontext ()?

979


What are the ways to handle multi-threading in servlets?

1023


Is it possible to have a constructor inside the servlet?

956


What are all the ways for session tracking?

1091


Can we use threads in Servlets?

1081


How do you find out what client machine is making a request to your servlet

1009