One of hundreds of answers available with our premium content service.
A: Servlets are normal Java classes, they compile and run just like any other class. All that is required is that servlets implement the javax.servlet.Servlet interface. Usually, they extend a protocol-specific class such as javax.servlet.http.HttpServlet.
… full answer hidden
Premium members click below for full answer
Can I use a normal class to handle my requests?