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 a servlet-to-servlet communcation?
Why filter is used in servlet?
Explain the different ways for servlet authentication?
Which application server is best for java?
Is it good idea to create servlet constructor?
What do you mean by the servlet chaining?
What is the difference between a generic servlet and http servlet?
What is servlet in tomcat?
Explain the custom jsp tags and the beans.
How the JSP file will be executed on the Server side?
What are the servlet events?
What mechanisms are used by a Servlet Container to maintain session information?
Is servlet a controller?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
What's the servlet interface?