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 init() method in destroy() method of servlset. ?

Answer Posted / gayathri janarthanam

One can programatically call destroy() from init(), though it is not recommended. it will be invoked like a regular java method call..Whatever code is written in the destroy method will run....It will not destroy the servlet...Only the servlet container can call the destroy() method to actually destroy a servlet....

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the life-cycle of servlets?

1139


What is load-on-startup in servlet?

1145


What is the procedure of invoking different servlet in a different application?

1022


What is servlet container?

1119


Can we override destroy method in servlet?

987


What is Request Dispatcher?

1442


Define the lifecycle for executing a jsp page.

1085


What are Servlets?

1130


What are the life cycle methods of a servlet?

1054


What are all the protocols supported by httpservlet?

1284


Explain the concept of ssi ?

1071


Explain the working of service() method of a servlet.

968


List some life cycle methods of a servlet.

1070


What do you mean by cgi in servlet?

1081


What is httpservlet class?

1153