Private Access Applied to a Class

The private access modifier cannot be applied to a standard outer class.
In Java, sometimes it matters just as much what you cannot do versus what you can do.
An exam test question may have some complicated logic located inside of a class marked private.
If you notice the private class in the declaration, you won't waste your time figuring things out and you can just answer something like fails to compile.
Okay, what happens when we try to apply private access to a class?
Let's do it.

Open the command prompt (CMD - see the Getting Started ) and type in the following commands.