I was checking the Servlet API and I noticed that GenericServlet is an abstract class that implements the javax.servlet.Servet interface. I was wondering why the authors of GenericServlet class declared an abstract method "service(ServletRequest req, ServletResponse res)" if this method is already declared in the interface javax.servlet.Servlet. Any idea?
Aucun commentaire:
Enregistrer un commentaire