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 the difference in between the httpservlet and generic servlet?

1183


What are the different ways we can maintain state between requests?

1157


Explain the war file?

1117


Explain servlet.

1090


What is servlet in simple terms?

1074


Can you create a deadlock condition on a servlet?

1123


What is http servlet in java?

1117


What is new in ServletRequest interface ? (Servlet 2.4)

1059


How is a servlet implemented in code?

1120


How can we include static files in the jsp page?

1114


What are the types of an http request?

1216


Define the servlet mapping.

1117


What is the major difference between context parameter and context attribute?

1165


What is http servlet?

1104


What are different methods of session management in servlets?

1328