I am a new member to java ranch. Recently I played the Java Rule roundup games and have a question on two questions (#17 and #18): #17: Can a top-level class be marked as private? #18: Can a top-level class be marked as protected? Both answers are "no".
I thought the answer should be "yes", considering that a nested static class is a also top-level class and is viewed as a member of the enclosing class. Therefore, it can have any accessibility modifier that is applicable to a member of a class, including "protected" or "private". Am I interpreting the definition "top-level class" incorrectly in these two questions?