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

Can we override servlet service method?

591


What are the uses of servlet

635


Differentiate between the print writer and servlet output stream?

565


What is the use of httpservletresponsewrapper?

537


Can you create a deadlock condition on a servlet?

589






How can I send user authentication information while making URL Connection?

549


What is servlet configuration?

532


What is servlet and its use?

629


Why filter is used in servlet?

528


Why jsp is better than servlet?

535


List some life cycle methods of a servlet.

592


What is servlet in tomcat?

562


What are the differences between the servletconfig interface and the servletcontext interface?

585


How can the session in servlet be destroyed?

646


What are advantages of servlets over cgi?

632