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?

Answers were Sorted based on User's Feedback



In which cases Destroy() is invoked?..

Answer / n.l.narayana

destroy() method is invoked automatically when ever the
servlet object is removed from the webcontainer
(Tomcat,weblogic,....)

Is This Answer Correct ?    4 Yes 0 No

In which cases Destroy() is invoked?..

Answer / 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

More Servlets Interview Questions

If some new data has entered the database, explain how can a servlet refresh automatically?

0 Answers   BirlaSoft,


Write a hello world program using servlets.

0 Answers  


What are the functions of Servlet container?

0 Answers  


List out difference between a JavaBean from a Servlet?

0 Answers  


How do you deal property files in servlet?

0 Answers  


Why is http protocol called as a stateless protocol?

0 Answers  


When we don't write any constructor for the servlet, how does container create an instance of servlet?

2 Answers   Godrej, TATA,


What are the exceptions thrown by servlets? Why?

0 Answers  


What is java servlet?

0 Answers  


Which method the Servlet container call to create the instance of the servlet?

16 Answers   emc2, JK Technosoft,


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

0 Answers  


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

0 Answers  


Categories