title: Nested package in Java
body: <p>Does Java allow nested packages?If yes then why outer class cannot be private? Scope of private outer class will be within that inner package and scope of default modifier will be outer package?</p>
  
  <p>Like </p>
  
  <pre><code>{ // Outer Package
  
  // Scope of default Access Modifier
  
  
      {  // Inner Package
  
         // Scope of private class
  
          private class Abc{
  
  
  
          }
  
  
          class Bcd{
  
          }
  
      }
  
  }
  </code></pre>