Multiple choice technology architecture

Which of the below statements are true considering MVC design pattern?

  1. Model – Java Class, JSP, View – HTML, Controller – Servlet

  2. Model – Java Class, View – JSP, Controller – Servlet

  3. Model – Java Class, View – JSP, Container – Servlet

  4. Model – Java Beans, View – JSP, HTML, Controller – Servlet, EJB

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

In the MVC (Model-View-Controller) pattern for Java web applications: Model represents the business logic and data (typically Java classes); View handles presentation (JSP pages for rendering HTML); Controller manages user interaction and coordinates Model and View (Servlets receive requests and delegate to appropriate components). Option A incorrectly places HTML as a separate component rather than what JSP generates. Option C is wrong because 'Container' is not an MVC role. Option D adds unnecessary complexity with EJB.