Why does Java not allow a top level class to be declared as private? Is there any other reason other than \"We can\'t access a private class\"?
Java doesn’t allow a top level class to be private. Only 'public' or 'package'.