Explain life cycle of a Servlet?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Servlet API used for connecting database?

854


What is a server side include (ssi)

828


What do you mean by scope object and what are its types?

830


How can you run a servlet program?

835


What is the difference between 2 types of servlets?

898


What is a servlet engine?

789


Why do we need servlet filter?

836


hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code

2578


What are the exceptions thrown by servlets? Why?

876


What is dispatcher servlet?

839


What is a servlet-to-servlet communcation?

910


Is java servlet still used?

814


Tell us something about servletconfig interface.

801


Explain their methods? Tell me their parameter names also have you used threads in servlet?

829


How do I use cookies to store session state on the client?

761