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...

what is servlet life cycle?

Answer Posted / anu

There are 3 methods in servlet life cycle:init(),service
(),destroy().
whenever servlets loads,init() method is invoked.init
()invokes only once in whole life cycle.then service()
method is invoked which handles all the Http requests and
correspondingly generate Http response.Finally service()
method is invoked for unloading the servlet.this method is
also invoked only once.

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different methods of session management in servlets?

1018


Can we override servlet service method?

1097


Explain web application directory arrangement?

1064


Explain get and post.

1109


Name the packages that work with servlet?

996


What is called Scriptlet?

1099


What are common tasks performed by Servlet Container?

1259


Who is responsible for writing a constructor?

1265


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

1298


What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

1043


What do you mean by cgi?

968


How to get the actual path of servlet in server?

1221


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

1039


Define declaration.

1067


Explain the architechure of a servlet?

1116