When you declare a
method in a
Java class, you can allow or disallow other classes and object to call that
method. You do this through the use of access specifiers. The
Java language supports five distinct access levels for
methods:
private,
private protected, protected, public, and, if left unspecified, "friendly".
read more >>