A class cannot be declared:
-
Static
-
Private
-
Default
-
None of the above
B
Correct answer
Explanation
In Java, top-level classes cannot be declared as private or protected; they must be public or have default (package-private) access. While inner classes can be private, the general rule for classes is that they cannot be private.