public - accessible from anywhere in the application, default - accessible from package, protected - accessible from package and sub-classes in other package as well, private - accessible from its class only.
public - accessible from anywhere in the application.
default - accessible from package.
protected - accessible from package and sub-classes in other package. as well
private - accessible from its class only.