Multiple choice technology databases

What must be implemented by all Servlets?

  1. Servlet Interface

  2. servlet mapping

  3. Servlet Container

  4. None of the Above

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

All Servlets must implement the javax.servlet.Servlet interface, which defines the lifecycle methods (init, service, destroy) that the servlet container calls. Servlet mapping is a configuration concept, and Servlet Container is the runtime environment, not an interface to implement.