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 servlet and list its types?
How to handle exceptions thrown by application with another servlet?
How do servlets work?
What is servlet in web technology?
How can the session in servlet can be destroyed?
What is the process for chaining servlet?
What’s the use of the servlet wrapper classes??
What are the different methods of session management in servlets?
Is java servlet still used?
What is webservlet?
What are the types of Session Tracking ?
What is api in servlet?
Explain the difference between generic servlet and http servlet?
What is difference between get and post method?
Can you refresh servlet in client and server-side automatically?