Servlet init method and Servlet Constructor
0 posts in topic
Flat View  Flat View

Posted By:   chetan_shinde
Posted On:   Friday, October 23, 2009 02:26 AM

Whats the difference between the 2?
The Servlet constructor and Servlet init method?

Both are called 1 during the life of a Servlet instance so can I copy the init code into the constructor?

I know that certain references that are held by the Container will only be accessable in init method like the ServletConfig which is passed as a argument to the init method are there any other difference worth taking note of?

About | Sitemap | Contact