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

Is tomcat a servlet container?

1054


How servlet is created?

1221


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

1065


How many objects of a servlet is created?

1277


What if we pass negative value in load-on-startup?

1284


What is the difference between 2 types of servlets?

1151


Explain how to improve Servlet Performance?

1150


How can you create a session in servlet?

1147


What is servletconfig?

1041


How does java thread pool work?

1123


What is the need of session tracking in web application?

1040


Which event is fired at the time of setting, getting or removing attribute from application scope?

1145


What are the benefits of using servlet over cgi?

1077


What is generic servlet class?

1076


Explain the concept of ssi ?

1071