Prev Next

Java / Modifiers

Can a class be declared private?

No. The outer class cannot be private. We will get a compile time error.

More Related questions...

Show more question and Answers...


Comments & Discussions