I am reading some Java text and the text says that we can only apply public
or default
access modifier for class and interface. Therefore, it is a compiling error if we declare:
private class A {}
or
protected class A{}
I am just curious why a class or an interface cannot receive private
or protected
access modifiers?