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

How printwriter is different from servletoutputstream?

952


Write a servlet to upload file on server.

1035


What is the need of servlet filters?

939


What are the annotations used in servlet 3?

995


What is servletconfig?

974


how the HTML data stored in web server?

2549


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

1007


Define the servlet mapping.

976


Why filter is used in servlet?

937


Why is a constructor needed in a servlet even if we use the init method?

1090


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

1091


what is multiple server?

2257


What is the life-cycle of servlets?

1089


What is the need of session tracking in web application?

976


What are session variable in servlets?

979