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

How do we call one servlet from another servlet?

1103


Can we use threads in Servlets?

1193


What are different ways for authentication of servlet?

1168


What if we pass negative value in load-on-startup?

1336


What are different ways for servlet authentication?

1175


What are the steps that are involved in using the httpservlet class?

1190


What’s the use of the servlet wrapper classes??

1161


Why is httpservlet declared abstract?

1180


What are the types of servlets? Explain

1332


What is a cookie What is the difference between session and cookie

1145


Define the lifecycle for executing a jsp page.

1142


What are the objects involved when a servlet receives a call from client?

1094


What is cookies in servlet with example?

1232


Is java servlet still used?

1095


How can you use a servlet to generate a plain text instead of html?

1181