What is the life cycle of a servlet?

Answer Posted / hrindows@gmail.com

Loading Servlet.
Then initialising the Servlet.
Handling the Request (invoking service method).
Then destroying the Servlet.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

548


What is a generic servlet?

518


When a client request is sent to the servlet container, how does the container choose which servlet to invoke?

571


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

545


What do you mean by session tracking?

667






What is servlet name in web xml?

551


What are the differences between forward() method and sendredirect() methods?

547


How forward () method is different from send redirect () method?

515


What are different methods of session management in servlets?

774


How many objects of a servlet is created?

788


Explain mvc pattern.

592


What is servlet initializer?

503


What is lazy loading and what is Generic Servlet Class?

607


What are the ways to handle multi-threading in servlets?

595


What are the life-cycle methods for a servlet?

551