Private class declaration

T__ picture T__ · Feb 4, 2013 · Viewed 157.2k times · Source

Possible Duplicate:
Java: Why can we define a top level class as private?

Why can't we declare a private outer class? If we can have inner private class then why can't we have outer private class...?

Answer

Amit picture Amit · Feb 4, 2013

Private outer class would be useless as nothing can access it.

See more details:

Java: Why can we define a top level class as private?