Help the world stop coronavirus! Stay home!

Prev Next

Java / Modifiers

Types of access modifiers.

There are four access modifiers in Java.


Private members are visible only inside the class in which they are defined.


Protected members of a class are visible within the package but they can be inherited to sub classes outside the package.


public members are visible universally.

default or No-access modifier.

Members of a class which are defined with no access modifiers are visible within the package in which they are defined.

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...


Comments & Discussions