The servlet implementation class must be sub type of Servlet Interface and should not be abstract.So the implementation class needs to implement all the methods declared in the Servlet interface even though it's not needed. To solve this problem the Servlet API provides a Adapter Class i.e., GenericServlet. This GenericServlet implemets the javax.Servlet.Servlet interface and provides the basic implementation for the methods except Service() method.