Two types of modifiers are offered by Java. They are: Access modifiers and Non-Access modifiers. The visibility is controlled by access modifiers for using a class or a variable or a method or a constructor. Functionalities are offered by non-access modifiers like synchronizing a method or block.
Access Modifiers In Java :
The visibility of a class or method or a variable or a constructor can be controlled with the help of access modifiers. In Java, there are four different access modifiers in Java..
.read here