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

How can I avoid validating a form before data is entered?

536


What is the purpose of the wait() method?

588


What are the pros and cons of detached objects?

519


Are we allowed to change the transaction isolation property in middle of a transaction?

538


What is Stream Tokenizer?

1710






difference between  ejb,struts,hibernate,spring and jsp

2273


In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?

2121


Why are my checkboxes not being set from on to off?

614


Do you think that java should have had pointers?

573


Are enterprise beans allowed to use thread.sleep()?

621


Explain the different types of memory used by jvm?

580


What value does readline() return when it has reached the end of a file?

561


Explain what is orm?

649


what is an isolation level?

2188


Explain about local interfaces.

559