Servlet vs GenericServlet

Servlet vs GenericServlet vs HttpServlet

What is Servlet vs GenericServlet vs HttpServlet? Servlets are platform-independent server-side components, being written in Java. Before going for differences, first let us see how the three Servlet, GenericServlet, HttpServlet are related, their signatures and also at the end similarities. See how to write a Servlet. public class Validation extends…