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 do you mean by servlet context?

1136


Explain mvc pattern.

1023


What are the type of protocols used in httpservlet?

1089


Why are servlets used?

1039


Is servlet a server side scripting language?

1141


What methodology can be followed to store more number of objects in a remote server?

2280


What is the difference in between the httpservlet and generic servlet?

1122


What is java servlet?

1051


Explain jsessionid and when is it created?

1119


How can we achieve transport layer security for our web application?

1038


What is difference between GenericServlet and HttpServlet?

1171


What is session?

1072


What are advantages of servlets over cgi?

1113


What do you mean by scope object and what are its types?

1079


How to rectify errors in java servlet while compilation?

959