There are three types of access modifier in java
Private -This modifier can be accessed only inside the class, it cannot be accessed from outside the class.
Public-This modifier can be accessed from anywhere. both outside and inside the class.
Protected-This modifier can be accessed within the package and outside the package through child class.
Best learning portal that provides you great learning experience of various technologies with modern compilation tools and technique
Don't hesitate to give us a call or send us a contact form message