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