Shiraz Khan wrote:Please correct me if I am wrong.
You are wrong.
When you provide your own non-nullary constructor, no default nullary constructor is provided. Therefore, the servlet will fail.
Constructors are not useful notions when it cones to servlets.