private
can only be accessed by objects of the same class that it is in
public
can be accessed by any function or process in the program
default
cannot be accessed by objects in different packages
protected
can be accessed by subclasses/objects in different packages, but only through inheritance
accessibility
private, public, protected, default(if not specified)
public accessibility
can be accessed in any class and package
protected accessibility
can be accessed by classes and subclasses in the same package
default accessibility
can be accessed by classes in the same package; added by omitting a modifier
private accessibility
no other class can access, only within same class