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

can i call destroy() method in init() method of servlet

Answer Posted / tanuj

yes,

but genricServlet init() method initialization is different
from overriding it by you (we should not orride it).

destroy() method is used for closing many connections as
itit() method is used for starting some database and other
things.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is servlet and its advantages?

1112


What is the major difference between servlet and applet?

1062


Servlet is pure java object or not?

1243


Differentiate between the print writer and servlet output stream?

1041


Explain the role of dispatcherservlet and contextloaderlistener.

1263


What are the different methods involved in the process of session management in servlets?

1349


Explain the architechure of a servlet?

1166


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

1183


Is java servlet still used?

1094


What are different ways for authentication of servlet?

1168


How to read request headers from servlets?

1099


How do you invoke a servelt?

1190


How the typical servlet code look like ?

1323


What is the difference between Difference between doGet() and doPost()?

1367


What is difference between jsp and servlet?

1213