Multiple choice technology web technology

Front Controller design pattern is implemented through implementing which of the following interfaces?

  1. javax.servlet.ServletConfig

  2. javax.servlet.Servlet

  3. javax.servlet.ServletContext

  4. All of the above

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

The Front Controller pattern is implemented by creating a servlet that implements the javax.servlet.Servlet interface (typically by extending HttpServlet). The servlet acts as a centralized entry point for all requests. ServletConfig and ServletContext are interfaces for configuration and context access, not for implementing the controller itself.