+1 vote
by (1.6k points)

1 Answer

0 votes
by (876 points)
selected by
 
Best answer

The Servlet life cycle mainly goes through four stages namely loading which involves loading and initializing the Servlet by the Servlet container, initializing (here the Servlet container initializes the instantiated Servlet object), request handling(it performs service requests) and destroying the Servlet.( after the destroy() method, the Servlet container releases all the references of this Servlet instance so that it becomes eligible for garbage collection.)

Welcome to CodersEditor Q&A, where you can ask questions and receive answers from other members of the community.
...