One of hundreds of answers available with our premium content service.
A: A servlet is a normal Java class, so when there are no custom constructors, there is an implicit default constructor with no arguments. Servlet containers typically use the Class.newInstance() method to load servlets, so you must be careful to add an explicit default constructor if you add non-default constructors.
… full answer hidden
Premium members click below for full answer
Can I use a constructor in my servlet?