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 are the kinds of http requests?

1021


why we should override only no-agrs init() method.

1118


What is the use of send redirect () method?

1066


What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?

1018


Name the different ways of session tracking.

1008


Should I override the service() method?

1077


List out difference between a JavaBean from a Servlet?

1014


Why jsp is better than servlet?

1003


Write a hello world program using servlets.

1040


What is war file?

1077


What is called Scriptlet?

1086


What is the difference between jsp and servlet life cycle?

1205


Explain the difference between jsp and servlet?

1043


Explain the difference between generic servlet and http servlet?

981


how many jsp scripting elements are there and what are those?

995