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

What are the difference between RMI and Servlets?

1519


How do you communicate in between Applets and Servlets?

1022


Explain session tracking and its importance?

959


What are the supporting protocol by HttpServlet ?

1112


How do you configure a centralized error handler in servlets?

1034


Which application server is best for java?

1020


How do I use cookies to store session state on the client?

907


How many objects of a servlet is created?

1218


What are the steps involved in placing a servlet within a package?

1029


What do you mean by cgi and what are its drawbacks?

930


Tell us something about servletcontext interface.

1032


What is the difference between the include() and forward() methods?

1027


What are the types of Session Tracking ?

1086


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

987


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

1027