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 is the internal implementation of set in java?
What is a double vs float?
What is the set interface in java programming?
How does varargs work in java?
Is a boolean 1 bit?
What do you understand by Header linked List?
Write a program based on Java script program.
Describe the Big-O Notation.
Is java programming easy?
How can you traverse a linked list in java?
Is void a data type?
What is temp in java?
Implementations of set interface?
What do you mean by buffering?
What is object cloning in Java?