Monday, August 27, 2018

Loose coupling and tight coupling in java – Comparison Example

In object oriented design, Coupling refers to the degree of direct knowledge that one element has of another. In other words, how often do changes in class A force related changes in class B.

Note : Tight coupling violets OPEN CLOSED PRINCIPLE ( A class should be open for extension and closed for modification).

You can read  open closed oops design principle .    Dependency Injection framework are also example of this, See more on this.


For more information please visit:-

1. http://www.interviewsansar.com/2018/03/24/loose-coupling-and-tight-coupling-in-java/

2. http://www.interviewsansar.com/2016/05/12/open-closed-principle-interview-question-with-awesome-answer/

3. https://www.geeksforgeeks.org/coupling-in-java/

4. https://dzone.com/articles/what-is-loose-coupling

5. http://www.codesuggestions.com/java/tight-coupling-and-loose-coupling-between-java-objects/

1 comment:

SOLID-Design-Principles

SOLID-Design-Principles The SOLID principles are fundamental to designing effective, maintainable, object-oriented systems. Whether you...