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 we call destroy() method inside the init() method? What
happens when we do so?

Answer Posted / srilatha

In the servlet life cycle First our request calls to the
init()method,Inside it will doing some operations related
to the objects after that it will cal the destory() method
The destory()removes the servlet object,before calling to
service() method.

Is This Answer Correct ?    2 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is servlet and list its types?

1014


How can the session in servlet be destroyed?

1101


What are the phases of a servlet life cycle?

1053


What is api in servlet?

963


What are the two important api's in for servlets?

1014


What is the need of session tracking in web application?

976


Difference between get and post in java servlets?

977


What is called servlet mapping?

997


Define the servlet mapping.

976


What is the workflow of a servlet?

1120


What is the importance of init() method in Servlet ?

1035


What is servlet collaboration?

1097


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

1088


What are the common methods that are included in the http servlet class?

994


What is servlet and how it works?

914