Explain life cycle of a Servlet?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are all the ways for session tracking?

595


How do you find out what client machine is making a request to your servlet

534


Is it possible to have a constructor inside the servlet?

554


What exactly are the functions of servlet?

603


How can a servlet be used to generate plain text instead of html?

548






What is Client-Server Computing?

1899


How to upload a file to the server using servlet?

533


Is java servlet still used?

592


How will two or three servlets interact or communicate with each other?

916


What is the difference between jsp and servlet life cycle?

693


Elucidate servlet attributes and its scope?

571


How to generate the server side programming and the advantages of it over the other languages?

565


why we should override only no-agrs init() method.

680


Write all the phases defined in servlet life cycle?

589


What is the difference between context parameter and context attribute?

535