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 / deepesh

Yes, We can call destroy() from init() method but after
coming out from the destroy() it will again process the init
() method like the life cycle has to be. Thus we can not
control the servlet life cycle, though we can call destroy
() from init().

Thanks.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to show the functionality of servlets.

965


What is cgi and what are its drawbacks?

979


Which interface should be implemented by all servlets?

1163


How we can call a jsp from the servlet?

954


Why are http servlets used in programming?

961


Whats the advantages using servlets over using CGI?

1004


Differentiate between get and post?

1102


What is difference between GenericServlet and HttpServlet?

1063


What is the difference between a generic servlet and http servlet?

937


What are the differences between servlet context vs servlet config?

1020


Difference between forward() method and sendredirect() method ?

981


What is the difference between the servlets and cgi programs?

942


What methodology can be followed to store more number of objects in a remote server?

2208


Why doesn’t a servlet include main()?

984


What is Client-Server Computing?

2350