[Solved] Visibility of class in Java [closed]

[ad_1]

Low visibility = private. High visibility = public. And there are two more visibilities in-between. From higher to lower visibility:

public > protected > "default" > private

“Default” doesn’t have a keyword associated, it’s the visibility that applies when no visibility is explicitly declared. And here’s the relevant link from the documentation.

[ad_2]

solved Visibility of class in Java [closed]