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

What does the application client module contain?

688


What is general entity?

706


What is delegation?

724


What are the j2ee technologies?

672


What is java transaction api (jta)?

712


What is j2ee api?

732


What do you mean by j2ee module?

744


Can I run seam in a j2ee environment?

708


What is jaxr client?

698


What is the use of jit compiler in java?

684


What is java application server?

683


What is java 2 platform, standard edition (j2se)?

736


Are java primitives objects?

643


What is javafx java?

699


What is j2ee module?

775