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

Tell us something about servletconfig interface.

0 Answers  


How do you define a servlet?

0 Answers  


What is the difference between doGet and doPost?

9 Answers   iGate,


Servlet is pure java object or not?

0 Answers  


What are the uses of servlets?

0 Answers  






Can servlet have a constructor ?

0 Answers  


Why filter is used in servlet?

0 Answers  


What is the difference between servlet and filter?

0 Answers  


What do you mean by request dispatcher in servlet?

0 Answers  


What is the difference between JspWriter and PrintWriter

4 Answers   Artech,


Explain the differences between jsp and servlet.

0 Answers  


Explain the difference between servlet and cgi?

0 Answers  


Categories