Why GenericServlet Class Needed ?

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.

Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email