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

Write a hello world program using servlets.

1012


Explain web container.

977


What is the difference between sendredirect() and forward() in a servlet?

956


What are the phases of servlet life cycle?

1057


Write a command to get actual path of a servlet to the server?

969


What are the exceptions thrown by servlets? Why?

1099


Explain how to improve Servlet Performance?

1085


Can you call a jsp from the servlet?

966


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

1027


Why servlet is faster than jsp?

1010


Explain the difference between generic servlet and http servlet?

941


What are the new features added to servlet 2.5?

1043


What are the drawbacks of cgi?

961


What is servlet collaboration?

1097


How a servlet is unloaded?

1029