Hi Guys, I am started studying servlets first time, I have been asked one simple question,
why do we need init() method, when we have servlet constructor to perform initialization things?
My Ans: because we may need to pass objects to initialize,and init() can be overloaded where as servlet constructor can not. Am I correct? please confirm and provide me some more information if you have.
Cheers... Shiva
Cheers.....<br /> <br />shiva<br />SCJP 1.5<br />Preparing for SCWCD
Please check the Servlets FAQ before posting to see if your question has already been addressed, as this one has. [ October 16, 2008: Message edited by: Bear Bibeault ]