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

Explain how to improve Servlet Performance?

1139


What is ServletConfig object?

1179


Difference between get and post in java servlets?

1034


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

1042


What is the difference between get and post methods?

1038


What is the difference between encodeRedirectUrl and encodeURL?

1109


How forward () method is different from send redirect () method?

966


What are the new features added to servlet 2.5?

1091


What is the process for chaining servlet?

1047


How do you find out what client machine is making a request to your servlet

1055


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

1266


What is called servlet container?

1086


How can we perform any action at the time of deploying the project?

1112


Which event is fired at the time of session creation and destroy?

1388


How can we invoke another servlet in a different application?

1208