❮ Java Keywords
privateDefinition and Usage
The private keyword is an access modifier used for attributes, methods and constructors, making them only accessible within the declared class.
Related Pages
Read more about modifiers in our Java Modifiers Tutorial .
❮ Java Keywords