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

Difference between httpservlet and generic servlets?

1100


What is load-on-startup in servlet?

1137


What is the use of servlet context?

1033


How printwriter is different from servletoutputstream?

999


Which are the different ways you can communicate between servlets?

995


What is servlet used for?

1139


Which HTTP method is non-idempotent?

1126


What are the types of protocols supported by httpservlet ?

1217


Explain the difference between generic servlet and http servlet?

988


Why is httpservlet declared abstract?

1112


What are session variable in servlets?

1020


What is cgi?

1013


What is the use of attribute in servlets?

1039


Define the life cycle of a servlets.

1055


What is a web container and what is its responsibility?

976