Explain the life cycle of servlet?

Answer Posted / sasi kumar

Initialization:A servlet is first loaded and initialized
usually when it is request by the corresponding client.
Service:After initilization,the servlet serve client on
request,implementing the application logic clients of the
web application they belong to.
Destruction:When all pending request are processed and the
servlets have been idle for a specific amount of time,they
may be destroy by the servlet and release all the resources
they occupy.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why does the tag url-encode javascript and mailto links?

675


What is the difference between system.out ,system.err and system.in?

683


What is the purpose of the wait(), notify(), and notifyall() methods?

665


What is the purpose of the wait() method?

725


Name three component subclasses that support painting?

691






What is the RMI and Socket?

709


Difference between DurableSubscription and non- DurableSubscription?

1800


What is the difference between RMI registry and OS Agent?

732


What is the argument type of a programs main() method?

650


To what value is a variable of the string type automatically initialized?

731


Is jvm a overhead?

703


What are the different types of exception?

672


Is “abc” a primitive value?

704


Can we sent objects using Sockets?

736


What are the purpose of introspection?

790