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

Can we refresh servlet in client and server side automatically?

1031


What is the use of servlet wrapper classes?

1169


What is a servlet context object?

1121


Is servlet a server side scripting language?

1113


What is difference between get and post method?

1061


Write a program to show the functionality of doget and dopost method?

1200


What is a servlet?

1125


What is the life-cycle of servlets?

1130


How to make sure a servlet is loaded at the application startup?

1026


What is servletconfig?

1012


How do we go with database connection and log4j integration in servlet?

1157


If a servlet is not properly initialized, what exception may be thrown?

1172


What are the different ways we can maintain state between requests?

1087


Explain servlet events?

992


How do you deal property files in servlet?

1046