Mark As Completed Discussion

Package-Private

This is the most obscure access modifier and is only applicable to the Java programming language. Java likes to maintain all of its classes inside packages. There is no keyword reserved for this access modifier. Instead, if you do not use any keyword at all, then that class, method, or attribute will be package-private.

Any other class inside a package can access a package-private method or attribute inside the same package, but a class outside that package cannot see the variable without an access modifier.