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
Who is java developer?
What is j2ee specification?
What do you understand by a thin client?
What are the four components of j2ee application?
What is jradiobutton in java?
What is java transaction api (jta)?
What is frame in java?
Is java an assembly language?
Is java is a technology?
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 ????
What are different modules in spring?
What is actionform?
Explain jta, jndi, and jms.
What are the four types of J2EE modules?
What is java 2 platform, micro edition (j2me)?