Can we put costructor in place of init() method?
Note : [I][This question was asked by badari, I am posting it in proper forum][/I]
Printable View
Can we put costructor in place of init() method?
Note : [I][This question was asked by badari, I am posting it in proper forum][/I]
no,
we cant provide constructor in place of init(), because the serrvlet is executed ny container not by the JVM, container always seeks for init() and executes init() but not constructor()