O'Reilly logo

OCP Java SE 7 Programmer II Certification Guide: Prepare for the 1ZO-804 exam by Mala Gupta

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

Note

The terms low coupling and loose coupling refer to the same concept. They are often used interchangeably.

The modified class Editor is tightly coupled with class Author. The method clear-EditingDoubts in class Editor accesses the nonpublic member skypeId of class Author:

What happens, say, if a programmer changes the name of the variable skypeID in class Author to skypeName? The code of class Editor won’t compile. As long as the public interface of a class remains the same, it’s free to change its implementation details. In this ...

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