Computer Science, asked by Jhimly, 1 year ago

What is Access Specifier in Java?

Answers

Answered by Anonymous
7
Access specifiers or sometimes JAVA visibility specifiers are keywords in JAVA that set the accessibility of classes, methods, and other members. They are a specific and important part of programming language syntax which is used to facilitate the encapsulation of components. They determine whether a field or method in a class, can be used or invoked by another method in another class or sub-class.

There are four types of access specifiers in JAVA.They are:-
1. public
2. private
3. protected
4. default (or no specifier)

Jhimly: Thank you very much.....
Anonymous: U are welcome!
Similar questions