KnowledgeBoat Logo
|

Computer Applications

What will be the visibility of a private class ?

Encapsulation & Inheritance in Java

1 Like

Answer

A top-level class can't be declared as private. Only inner or nested classes can be private.

Answered By

2 Likes


Related Questions