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 the life cycle of Servlet?

Answers were Sorted based on User's Feedback



What is the life cycle of Servlet?..

Answer / madan mohan

Servlets are server side components used to develop server
side applications.. servlet acts as a controller between
two or more pages...if any changes made in web.xml, we need
to redeploy the application

where as Jsp are java server pages which is combination of
html and jsp tags, directly run at explorer page, no need
to compile

both having similar life cycles like init(), doPOst() or
doGet() and destroy()...

Is This Answer Correct ?    5 Yes 3 No

What is the life cycle of Servlet?..

Answer / yogesh mudgil

The life cycle of a Servlet refers to the different phases
including its creation to its destroying.The different
phases of the life cycle of Servlet are:
1).Create Servlet
2).Create Instance
3).init()
4).service()
5).doget()/dopost()
6).destroy()

Is This Answer Correct ?    2 Yes 0 No

What is the life cycle of Servlet?..

Answer / shaik baji

Servlet life cycle contains the following steps in it:

step 1: When the first request comes to the servlet, the
container will load the servlet if and only if the user is
not specified <load-on-startup> tag in web.xml

step 2: The container will instantiates the servlet

step 3: The container will invoke the init() method of the
servlet with the ServletConfig as a parameter

step 4: The container will create the thread for that
request and invokes the service() method

step 5: Once the service method execution is completed the
container will invoke the destroy() method to release the
Servlet object.

Step 6: The servlet will unloaded from container when the
web server or the web application is getting shutdown.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Core Java Interview Questions

Where is core java used?

0 Answers  


Explain about strings in java?

0 Answers  


What 5 doubled?

0 Answers  


How to deprecate a method? Show it with proper example. Plz give the answer of this.Thanx in advance. mail me: tanzeem.akhtar@gmail.com

2 Answers  


Given a singly linked list, determine whether it contains a loop or not without using temporary space?

0 Answers   Global Logic,


How to instantiate member inner class?

0 Answers  


What is qualitative variable?

0 Answers  


What is a top level class in java?

0 Answers  


Explain about version control?

0 Answers  


Why collection doesn’t extend cloneable and serializable interfaces?

0 Answers  


What is the difference between the ">>" and " >>>" operators in java?

0 Answers  


Why is it called buffering?

0 Answers  


Categories