best answer > Why class can not be private in Java 2024?- QuesHub | Better Than Quora
  • Why class can not be private in Java 2024?

    Questioner:Harper Patel 2023-05-05 12:30:24
The most authoritative answer in 2024
  • Charlotte Thompson——Studied at Princeton University, Lives in Princeton, NJ

    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 >>
    +119962023-05-05 12:30:24

People also ask:

READ MORE:

QuesHub is a place where questions meet answers, it is more authentic than Quora, but you still need to discern the answers provided by the respondents.

分享到

取消