[Solved] Visibility of class in Java [closed]


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.

solved Visibility of class in Java [closed]