servlet has not any main method in it how does it work by
JVM?
Answer Posted / amit singh
no man first the constructor will run then the init()
method
which are used to intialization step likee servletconfig
then after service() method for all thread which will
create for the only on instance of servlet
what the mean is it people think that always the instance
of servlet always create when the requst for the particular
servlet but here only the one instance of servlet and the
the service method will excecute for distinct request
ao don't ever think that
note: that the constructor is default constructor you are
no able to call this constructor
so first the constructor will run
this servlet object it just a noraml object
but after the servletcofig it will be the servlet object
so the constructor will run
thanks
amitsing2008@gmail.com
amit09mca(scjp1.5 and many more)
| Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
Why is java called technology?
Describe the file types *.ear, * .jar and *.war?
What is javabeans component?
Describe orm?
What is the mvc on struts?
What are the advanced technologies in java?
What is ejb jar file?
What is repaint in java?
What is source file in java?
Is j2ee a language or framework?
What does java awt stand for?
Explain the four types of container that the j2ee specification defines
What is a web container in j2ee?
What is api in j2ee?
What is caller?