Multiple choice technology programming languages

GenericServlet is a __________

  1. Interface

  2. Class

  3. Abstract Class

  4. Filter

  5. None

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

GenericServlet is an abstract class in Java Servlet API that implements the Servlet interface. It provides basic implementation of most Servlet methods except service(), which must be implemented by subclasses. HttpServlet extends GenericServlet to provide HTTP-specific functionality. GenericServlet is not an interface, not a concrete class, and not a Filter.