Table of Contents
Tag: constructor in servlet
Can we have Servlet Constructor?
June 3, 2014
2 min read
**Yes, you can have as per rule. It is executed even before init().** Then why generally we avoid constructor in Servlets. First let us write one simple example and see it is true or not; then we will go into details.