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

What are the functions of Servlet container?

1125


Explain the role of dispatcherservlet and contextloaderlistener.

1204


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

1081


How can you create a session in servlet?

1151


What is the difference between jsp and servlet life cycle?

1235


Why doesn’t a servlet include main()? How does it work?

1174


What are the key methods that are involved in processing of http servlets?

1119


Explain how does JSP handle run-time exceptions?

1109


What is meant by servlet? What are the parameters of the service method?

1038


What is meant by cookies?

1085


What is the difference between Difference between doGet() and doPost()?

1315


What are the uses of servlet and what is servlet chaining?

1099


Explain request dispatcher and its methods.

1004


Explain the custom jsp tags and the beans.

1074


Can you send an authentication error from a servlet?

985