dcsimg

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

Chandra Patni

No you can't. It's the container who manages the lifecycle of the sevlet not you. Also, you must call super.init() for init() to work properly.