Title: Define the public- and private-access modifiers.
Course: Java Programming (Oracle) (10055) > Section: Understanding Methods and Classes

Definitions should include

- Public access modifier—A variable or class declared public is available to any other object, including subclasses and classes in other packages.
- Private access modifier—Variables, methods, or constructors declared private can only be accessed within the declared class itself.