What is HTTPServlet class?
The HTTPServlet class provides an abstract class that is to be sub classed which is suitable for a web site. The subclass of HTTPServlet class must override any one of the following methods: doGet(), doPost(), doPut(), doDelete(), init(), destroy(), or getServletInfo(). The service() method overriding has almost no reason because the service() method handles the HTTP requests by handler methods of HTTP request type such as doxxxx() methods.