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

Is c++ more secure than java?

574


How is java development environment setup?

555


What is jetty in java?

586


What is wildfly java?

577


What is java developer?

553






What are the components of the java platform?

558


Who gave the name java?

541


What are the most important topics in java?

563


What is the concept of connection pooling?

613


How will you explain cdata?

645


What are the components of awt in java?

586


How do I become an expert in java?

540


What is advance java?

586


What is digest authentication?

626


What are defined as web components?

584