A top-level
class as
private would be completely useless because nothing would have access to it. ... This means that a top level
class cannot be private.
Private classes are allowed but only as inner or nested
classes. If you have a
private inner or nested
class, then access is restricted to the scope of that outer
class.
read more >>