Following are some Java Web development interview questions: 1. Can we use the constructor, instead of init(), to initialize servlet? – Yes , of course you can use the constructor instead of init(). There’s nothing to stop you. But you shouldn’t. The original reason for init() was that ancient versions of Java couldn’t dynamically invoke [...]
↧