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 the use of httpservletrequestwrapper?

1142


What is the main purpose of java servlets?

1112


What is string tokenizer?

1140


Explain the role of dispatcherservlet and contextloaderlistener.

1251


How to get the IP address of client in servlet?

1134


A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

1139


What is meant by cookies?

1135


Explain the difference between jsp and servlet?

1144


What is the use of httpservletresponsewrapper?

1023


How can we implement a jsp page?

1199


What are the uses of servlet and what is servlet chaining?

1145


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

1098


Why servlet is used as controller ? Not JSP? I want complete explation?

1179


Servlet is pure java object or not?

1236


How is the get () method different from the post() method?

1034