Explain life cycle of a Servlet?

Answers were Sorted based on User's Feedback



Explain life cycle of a Servlet?..

Answer / janet

1. a server loads and initializes the servlet by init()
method.
2.the servlet handles zero or more client's requests
through service() method .
3. the server removes the servlet through destroy() method.

Is This Answer Correct ?    9 Yes 1 No

Explain life cycle of a Servlet?..

Answer / venky

the object of servlet is created in the init mehod by server

request of the client is processed in service method

the servlet is discarded from thr server by destroy method

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Servlets Interview Questions

What are the difference between HttpServlet and GenericServlets?

2 Answers  


Can you create a deadlock condition on a servlet?

0 Answers  


What mechanisms are used by a Servlet Container to maintain session information?

0 Answers  


Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com

0 Answers  


What are the life-cycle methods for a servlet?

0 Answers  






What is the difference between 2 types of servlets?

0 Answers  


How can the session in servlet be destroyed?

0 Answers  


Who is responsible to create the object of servlet?

0 Answers  


What are the uses of servlet

0 Answers  


Can I override destroy() method of Servlets?

4 Answers   Accenture,


What is Request Dispatcher?

1 Answers  


What's the servlet interface?

0 Answers  


Categories