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

How to get the actual path of servlet in server?

1271


Which java framework is most popular?

1216


How to find whether a parameter exists in the request object?

1161


Can servlet have a constructor ?

1100


Is servlet synchronized?

1135


What is servlet in simple terms?

1074


Is dispatcher servlet a singleton?

1070


Why session tracking is needed?

1085


What are the important functions of filters?

1200


What is servlet and its life cycle?

1165


What is servlet lazy loading?

1229


What are the servlet events?

1120


What if you need to span your transaction across multiple servlet invocations?

1139


What are the types of an http request?

1217


Why the container loads server at the application startup and how?

1116