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

Which event is fired at the time of setting, getting or removing attribute from application scope?

1079


Explain load on start-up and its importance?

1068


What are the differences between servlet context vs servlet config?

1021


Which java application server is the best?

981


What do you mean by cgi and what are its drawbacks?

930


What is meant by a servlet?

1044


Whether thread can be used in servlets?

1159


What is servlet? Explain

1010


How to get the path of servlet in the server?

945


What is the capacity the doget can send to the server?

1017


What is a deployment descriptor?

1047


When a servlet accepts a call from a client, it receives two objects. What are they?

1189


Servlet is pure java object or not?

1139


What is a servlet-to-servlet communcation?

1107


What is the default http method in the servlet?

1236