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 are the various ways of session supervision in servlets?

1013


Where do you define dispatcherservlet?

1052


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

1079


What are the steps that are involved in using the httpservlet class?

1127


Explain the difference between jsp and servlet?

1091


How printwriter is different from servletoutputstream?

1014


How do you get the ip address of the client in servlet?

1015


What are the different methods involved in generic servlet?

1096


Is dispatcher servlet a singleton?

1021


Explain Action Servlet?

1092


What is called servlet container?

1094


What is the procedure of invoking different servlet in a different application?

1022


What's the difference between authentication and authorization?

1145


Write a simple servlet program to print the contents of html.

1051


What are the uses of servlet

1181