servlet life cycle?

Answer Posted / sanpar

the life cycle of the servlet:

Servlet class is loaded.
Servlet instance is created.
init method is invoked.
service method is invoked.
destroy method is invoked.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When servlet is loaded?

600


What is the requirement of servlet config and servlet context implemented and how are they implemented?

549


What is the difference between Server and Container?

627


What is servlet container. how it works?

621


What is the directory structure of a war file?

717






Explain the difference between generic servlet and http servlet?

545


Can you send an authentication error from a servlet?

531


What is http servlet in java?

570


What is the element?

592


What is cgi?

605


What is session tracking?

704


What do you mean by servlet context?

607


Difference between forward() method and sendredirect() method ?

592


Explain the difference between servlet and cgi?

613


Tell the new features added in servletrequest interface i.e. Servlet 2.4

582