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

How can we include static files in the jsp page?

1031


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

918


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

1054


What is servlet in tomcat?

1021


What is servlet and its use?

1064


Who is responsible for writing a constructor?

1217


What is meant by session? Tell me something about httpsession class?

974


Is servlet a server side scripting language?

1082


What is generic servlet class?

1023


When servlet object is created?

1098


What is http servlet in java?

1026


Which httpsession object is used to view and manipulate information about a session?

1120


Why the concept of single thread model interface is used?

946


How do you invoke a servelt?

1076


What is difference between PrintWriter and ServletOutputStream?

1238