Google News
logo
Java - Interview Questions
Can we declare a class as ‘private’?
No, if we declare a class as private, then it is not available to java compiler and hence a compile time error occurs. But, inner classes can be declared as private.
Advertisement