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...

what happens if we wont use destroy()?

Answer Posted / qim2010

The destroy() method and other servlet lifecycle methods are called by the servlet container, so it would be a serious error if the servlet container did not call the destroy() method as it takes a servlet out of service. Normally your application code should not call servlet lifecycle methods. It is not advisable for your application code to call the destroy() method directly, it would be confusing and potentially destructive, so it is not a problem if your application does not call the method at all.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define the life cycle of a servlets.

1056


What are the difference between RMI and Servlets?

1563


Given the request path below, which are context path, servlet path and path info?

1043


Name the different ways of session tracking.

1024


How can we implement a jsp page?

1134


When servlet object is created?

1153


Why HttpServlet class is declared abstract?

1214


What do you mean by default initialization in java servlet?

1097


When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

1097


What do you mean by mime type?

974


What is the need of servlet filters?

1005


Why jsp is better than servlet?

1026


Whats the advantages using servlets over using CGI?

1071


Which application server is best for java?

1065


How can you use a servlet to generate a plain text instead of html?

1126