Answer Posted / giridhar gangapatnam
Life Cycle of Servlet:
1.Servlet Loading.
2.Servlet instantiation:
After Servlet instantiation and before calling init() method
ServletConfig object is created by Container.
3.Servlet initialization: At that time init() method is called.
4.Request processing:In this stage service() method is called
and at that time Request and Response objects are created by
Container.
5.Servlet deinstantiation:At this stage destroy() method
will be called.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the use of welcome-file-list?
Why servlet is faster than jsp?
What are the life cycle methods of the servlet?
Explain load on start-up and its importance?
Which protocol will be used by browser and servlet to communicate
How we can create war file in servlet?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
what is multiple server?
Can we get PrintWriter and ServletOutputStream both in a servlet?
What do you mean by annotations in servlet?
How can we create deadlock situation in servlet?
What are the steps that are required to handle the multi-threading?
How will two or three servlets interact or communicate with each other?
How do you design microservices?
What is the use of servlet wrapper classes?