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 external entity?
What is use of final keyword in java?
How will you explain load() and get() methods?
What is B2B?
What is java servlet container?
What is japplet in java?
What are the components of awt in java?
What is considered as a web component?
What is document root?
What are web technologies in java?
Is java is fully object oriented?
What is api in j2ee?
What is the mvc on struts?
What is callback methods Component methods called by the container to notify the component of important events in its life cycle?
whay java does not support bass by reference