✰Question
♣♣♣______Explain the various type of access modifiers______♣♣♣
Answers
Answered by
2
Answer:
Java provides four types of access modifiers or visibility specifiers i.e. default, public, private, and protected. The default modifier does not have any keyword associated with it. When a class or method or variable does not have an access specifier associated with it, we assume it is having default access.
Java provides four types of access modifiers or visibility specifiers i.e. default, public, private, and protected. The default modifier does not have any keyword associated with it. When a class or method or variable does not have an access specifier associated with it, we assume it is having default access.Private: Visible with in the class. It is not accessible outside the class
Java provides four types of access modifiers or visibility specifiers i.e. default, public, private, and protected. The default modifier does not have any keyword associated with it. When a class or method or variable does not have an access specifier associated with it, we assume it is having default access.Private: Visible with in the class. It is not accessible outside the classNo Access Modifier (Default): Visible to the classes with the package
Hope it helps.
Please follow.
Please thanks.
Answered by
11
Answer:
Java provides four types of access modifiers or visibility specifiers i.e. default, public, private, and protected. The default modifier does not have any keyword associated with it. When a class or method or variable does not have an access specifier associated with it, we assume it is having default access.
Similar questions