bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/Java/Java Reference
Java•Java Reference

Java private Keyword

❮ Java Keywords

private

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 .

❮ Java Keywords

Previous

Java package Keyword

Next

Java protected Keyword