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

Define the life cycle of a servlets.

807


What is the difference between Difference between doGet() and doPost()?

991


Difference between get and post in java servlets?

774


What if you need to span your transaction across multiple servlet invocations?

814


How would you create deadlock on your servlet?

856


What are the different session tracking techniques?

970


If some new data has entered the database, explain how can a servlet refresh automatically?

1009


How to read request headers from servlets?

817


What is the life-cycle of servlets?

869


List out the difference between ServletConfig and ServletContext?

798


What are the two important api's in for servlets?

814


What is the difference between portlet and servlet?

724


Is it possible to have a constructor inside the servlet?

753


Explain the difference between servletconfig and servletcontext in servlet?

790


What are the type of protocols used in httpservlet?

819