Multiple choice

Which of the following statements is not applicable for the GenericServlet class in the servlet applications?

  1. This is an abstract class which extends the servlet interface.

  2. It provides protocol independent servlet.

  3. This class has getServletInfo(), getServletName() and getInitParameterNames() methods.

  4. This class has getServletInfo(), getServletName() and getValue() methods.

  5. GenericServlet class implements servlet, ServletConfig and serialisable interfaces.

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

The getValue() method is not present in the GenericServlet class.