Java private Keyword

Java Keywords : A class with private attributes

Definition 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.