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 mapping?

595


List some life cycle methods of a servlet.

589


What are the mechanisms used by a servlet container for maintaining session information?

562


Which HTTP method is non-idempotent?

617


What is string tokenizer?

625






How do I know if java is running on linux?

604


What’s the difference between forward() and sendredirect() methods?

572


What do you mean by httpservlet and how it is different from the genericservlet?

536


Whether we can get deadlock situation in servlets?

573


How do you get the ip address of the client in servlet?

551


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

588


What do you mean by cgi and what are its drawbacks?

526


What is cookie in servlet?

592


What are the advantages of cookies?

629


Explain the role of dispatcherservlet and contextloaderlistener.

603