Multiple choice general knowledge

Which of the following J2EE components is recommended for use as a front controller for a web-tier application framework based on MVC?

  1. Entity bean

  2. Stateless session bean

  3. Servlet

  4. Applet

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

A Servlet is the recommended J2EE component for use as a front controller in an MVC-based web application. Servlets provide the necessary HTTP request handling capabilities, can intercept and route requests, and are designed to coordinate between models and views. Entity beans are for data persistence, session beans for business logic, and applets run client-side.