GenericServlet is a Abstract class. You need to implement all the unimplemented methods.
For Http protocols, these methods are implemented by the HttpServlet class and we simply extend it and use it in our servlet.
but nothing stops us from using GenericServlet abstract class. Infact we need to use GenericServletif we are going to use any protocol other than HTTP.