Modifiers in Java
Modifiers are keywords that are added to change meaning of a definition. In Java, modifiers are catagorized into two types,
- Access control modifier
- Non Access Modifier
1) Access control modifier
Java language has four access modifier to control access levels for classes, variable methods and constructor.
- Default : Default has scope only inside the same package
- Public : Public scope is visible everywhere
- Protected : Protected has scope within the package and all sub classes
- Private : Private has scope only within the classes


