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
Which is bigger float or double java?
What is a instance variable?
What is the purpose of void class?
What do you understand by casting in java language?
What are the parts of methodology?
Explain public static void main(string args[]).
Are static members inherited to sub classes?
What is the use of conditional statement?
What is null mean in java?
What’s the difference between the methods sleep() and wait()?
What happens if we don’t define serial version uid?
what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread
How is tree Mirroring implemented?
how to run ecllipse with jettyserver for windows environment using batch file
What is the difference between a factory and abstract factory pattern?