What is Inversion of control in MVC?

Wasim Akram
Wasim Akram

Posted On: Apr 01, 2020

 

Inversion of Control is a design principle that is used to invert different kinds of controls in object-oriented design. It is used to achieve loose coupling. It inverts the control such as control over the flow of an application, control over the flow of object creation, and binding, etc. With IoC, you can design a loosely coupled class to make it testable, maintainable, and extensible.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Java MVC Interview Questions

    What is MVC in Java?

    MVC (Model-View-Controller) pattern is an application design model that is comprised of three interconnected parts. Here, the model represents the object. It can also have logic to update the controll...

    Java MVC Interview Questions

    What is Spring MVC framework?

    Spring MVC framework is a type of Model-View-Controller architecture that provides components to develop flexible and loosely coupled web applications. This Java framework provides the DispatchServlet...

    Java MVC Interview Questions

    What is DispatcherServlet in Spring MVC?

    The DispatcherServlet class s used to receive the incoming request and map the request to the right resource like controllers, models, and views. Apart from acting as a controller, the DispatchSetvler...