Modifier in Java
There are two types of modifiers available in java . A) Access Modifiers B) Non-Access Modifiers . Access modifiers are four types . These are 1) Default
2) private 3) public 4) protected . Java provides number of non-access modifiers.
1) Default : Visible to the package . No modifiers needed .
2) private : Access within the class .
3) public : Access all over the world .
4) protected : Access to the package and all sub-classes .
Find us :
Facebook : @apnaandroid
Google+ : Apna Java
YouTube : Android & Java Tutorial
2) private 3) public 4) protected . Java provides number of non-access modifiers.
1) Default : Visible to the package . No modifiers needed .
2) private : Access within the class .
3) public : Access all over the world .
4) protected : Access to the package and all sub-classes .
Find us :
Facebook : @apnaandroid
Google+ : Apna Java
YouTube : Android & Java Tutorial
Comments
Post a Comment