O'Reilly logo

Modular Programming in Java 9 by Koushik Kothagal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The problem of coupling

The phrase tight coupling in programming is referred to situations where two entities are so highly dependent on each other that in order to change either of their behavior or relationship, it is required to make actual code changes to one (or often both) of those entities. The term loose coupling, on the other hand, refers to the opposite scenario--entities that are not highly dependent. In such cases, entities ideally don't even know about each other's existence, but can still be made to interact with each other.

With that in mind, what would you say the coupling of two modules in the Java module system could be called? When one module depends on another, are the two modules tightly coupled or loosely coupled? The ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required