servlet has not any main method in it how does it work by
JVM?

Answer Posted / srinivasa kumar meda

The life cycle of a servlet is controlled by the container
in which the servlet has been deployed. When a request is
mapped to a servlet, the container performs the following steps.

If an instance of the servlet does not exist, the Web container
1. Loads the servlet class.
2. Creates an instance of the servlet class.
3. Initializes the servlet instance by calling the
init method.
Invokes the service method, passing a request and response
object.

Is This Answer Correct ?    24 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is latest technology in java?

484


What is java secure socket extension (jsse)?

511


What is deployer?

550


What is java ee server?

463


Why is java called object oriented?

501






What is meant by j2ee?

497


What is event and listener in java?

424


What does resource adapt module contain?

536


What is non primitive data type in java?

494


What is j2ee stack?

500


What are j2ee components?

455


What is ejb jar file?

466


What is 'applet container' ?

617


What is java naming and directory service?

524


What is credentials?

507