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 is servlet looping or chaining?

0 Answers  


What do you mean by httpservlet?

0 Answers  


Is there any need to shutdown the web server, if you want to modify a servlet?

3 Answers  


when you comppile the servlet is it neccesary to restaet the tomcat server?

6 Answers   HCL,


How can we perform any action at the time of deploying the project?

0 Answers  


What is servlet and list its types?

0 Answers  


What do you mean by interservlet communication?

0 Answers  


What is meant by cookies?

0 Answers  


What do you mean by the servlet chaining?

0 Answers  


What is a generic servlet?

0 Answers  


Name the webserver that is used to run Servlets?

5 Answers  


How the servlet is loaded?

0 Answers  


Categories