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