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
What is j2ee module?
Which is best eclipse for java?
What is deployer?
Enlist the technologies embraced in j2ee?
What is the ear file?
What is java netbeans?
What type of code is java?
How java is reliable?
What is event in java?
What is j2ee application?
What is devops in java?
What are the components and containers in java?
What do you mean by the component contract?
What is a java application client?
What is java 2 platform, enterprise edition (j2ee)?