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 difference between server and servlet?

1089


What is Client-Server Computing?

2420


How will you pass values from HTML page to the servlet?

1045


What are the functions of the servlet container?

1626


What is context in servlet?

1034


What is difference between cookies and httpsession?

1090


What are the advantages of servlets over traditional cgi?

1094


How do cookies work in servlets?

1045


What is the difference between the include() and forward() methods?

1081


Can we override servlet service method?

1096


What is the use of httpservletresponsewrapper?

967


Explain how to improve Servlet Performance?

1141


What do you mean by scope object and what are its types?

1068


What is the difference between Difference between doGet() and doPost()?

1296


What is the life cycle of a servlet?

1528