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 uses of servlet

1180


When should you prefer to use doget() over dopost()?

1157


How to commuincate between an applet and a servlet?

1057


Explain the steps involved in placing a servlet within a package?

1059


What is the process for chaining servlet?

1054


What are the types of Session Tracking ?

1151


What are the jobs performed by servlets?

1086


Define the servlet mapping.

1059


What’s the difference between genericservlet and httpservlet?

1115


How can the referrer and the target urls be used in servlet?

1011


What are the benefits of using servlet over cgi?

1071


What is servlet looping or chaining?

1135


Can you explain in detail 'javax.servlet' package?

1000


What are the life cycle methods of the servlet?

1091


How can you create a session in servlet?

1146