In a complex web application using MVC and servlets, a new feature requires integration of a third-party service. Where should this integration primarily take place?

  • In a separate utility class
  • In the Controller
  • In the Model
  • In the View
In MVC architecture, business logic, including third-party service integration, is primarily handled in the Controller. This ensures separation of concerns and makes the application more modular.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *