Friday, 28 February 2014

Can we use the constructor, instead of init(), to initialize SERVLET?

Yes, constructor can be used instead of init().
But it is not suggested as SERVLET containers will only call no argument constructor so we won’t have access to a ServletConfig or ServletContext.

No comments:

Post a Comment

Thank you so much for providing your valuable feedback. I will will look into them and update my skills & technologies accordingly.