Explain servlet life cycle with suitable diagram.
Answers
Answered by
0
Answer:
✔✔ A servlet life cycle can be defined as the entire process from its creation till the destruction. The following are the paths followed by a servlet. The servlet is initialized by calling the init() method. The servlet calls service() method to process a client's request.✔✔
Answered by
0
The following figure depicts a typicalservlet life-cycle scenario.Theservlet container loads the servlet before invoking the service() method. Then the servlet container handles multiple requests by spawning multiple threads, each thread executing the service() method of a single instance of the servlet.
Attachments:
Similar questions