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
What is java technology stack?
What is architecture neutral in java?
Which server is best for java?
What is caller?
What is japplet in java?
What are the java backend technologies?
What is container-managed persistence?
What is mean by j2ee?
when i m calling java for web browser . so browser it's not support. show error in browser: internal error occur. java.lang.NoClassDefFoundError. will you give me solution why it's not starting browser.? is there any consult with .net framework2.0?
Is j2ee a language or framework?
Give some advantages of orm (object-relational mapping)?
J2ee is a container centric architecture. Explain.
What are the main components of multi-tier architecture?
Is class a data type in java?
How long does it take to master java?