A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
instance of servlet
Joined: Oct 25, 2005
Oct 23, 2006 08:23:00
I know that instance of
is created when init() method is called but in book of head first it has been written that init() method is called after creation of instance please specify these things.
Actualy what is the instance of a servlet ?
Arun kumar maalik
Author and ninkuma
Joined: Jan 10, 2002
Oct 23, 2006 09:12:00
A method cannot be called on an instance of an object until after it has been created. So init() can't create the servlet instance, it is called by the container after the instance has been created.
Asking smart questions
Books by Bear
Joined: Nov 29, 2005
Oct 23, 2006 10:16:00
are no different.They are also like other
So you need to create instance before calling method init().
subject: instance of servlet
Why do we have init() method in Servlets ?
how many times init() method gets called
sinificance of value of tag <load-on-startup> in web.xml
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015