Servlet gets initialized in following two ways 1)Invoke corresponding constructor 2)Call init()
What I want to know is when do container go for these options ie when do container use option 1 and when do container use option 2
~ Pratibha Malhotra<br /> <br />Sun Certified Java Programmer<br />SCEA 1.4 (In Progress)<br />~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />"Many of life's failures are people who did not realize how close they were to success when they gave up!!"
Joined: Jul 20, 2005
They both happen as part of the servlets life cycle. The whole life cycle is as follows