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 do you understand by a thin client?
What is java ee used for?
What is the latest technology used in java?
What are the main components of the j2ee application?
What is iso 3166?
How many types of modules is defined by j2ee specification?
Why java is not 100% object oriented language?
How many java languages are there?
What is empty tag?
I am newbie in J2EE & looking for strong basic behind each concept as, Why do we use private access specifier before each variable of type property bcoz ultimately to access it outside the class we use public method as getter & setter ? If we use getter & setter to access it outside the class so better we make variable as public so that it is easily available outside of the class... Please guide me why do we use as private ????
Why is java called object oriented?
What is a web container in j2ee?
What is component-managed sign-on ?
Which compiler is used in java?
Why is java important for internet?