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

Why doesn’t a servlet include main()?

561


If my browser does not support cookie, and my server sends a cookie instance what will happen?

651


What are different methods of session management in servlets?

780


Explain the servlet context.

602


How printwriter is different from servletoutputstream?

580






What are the difference between RMI and Servlets?

1050


What is servletconfig?

547


Explain the difference between servletconfig and servletcontext in servlet?

571


request parameter how to find whether a parameter exists in the request object?

574


What is the servletconfig object?

534


What do you mean by the servlet chaining?

549


Why are http servlets used in programming?

546


What is servlet? Explain

579


Can servlet have a constructor ?

595


What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?

567