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). This allows a single controller to handle all requests and delegate to appropriate handlers. ServletConfig and ServletContext are configuration objects, not handler interfaces.