Answer Posted / 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 View All Answers
What are passing parameters?
Can java program run without jre?
What do you understand by java?
What restrictions are placed on method overloading in java programming?
What is mean by collections in java?
What is the use of bufferedreader?
How to split arraylist elements in java?
What is busy spin, and why should you use it?
How can you avoid serialization in child class if the base class is implementing the serializable interface?
What are the 6 boolean operators?
How many bytes is 255 characters?
Is upper case in java?
What do you mean by chromounits in java8?
Differentiate jar and war files?
What is boolean flag in java?