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

Explain the differences between jsp and servlet.

538


List out difference between a JavaBean from a Servlet?

562


What is http servlet?

579


Explain the different ways for servlet authentication?

528


What's the use of servletcontext?

680






Explain the servlet filter.

540


What are Servlets?

596


Can you use javascript in servlets?

598


What is the major difference between context parameter and context attribute?

593


What are the functions of the servlet container?

1027


Differentiate between get and post?

682


What do you mean by a filter and how does it work?

538


Define declaration.

616


Where do you define dispatcherservlet?

550


What are all the ways for session tracking?

593