title: Does Java offer a way to allow special access from Packages along the Hierarchy?
body: <p>Does Java Package hierarchy affect the access right of classes and variables?</p>
  
  <p>About Java Package: <a href="http://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html" rel="nofollow">http://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html</a></p>
  
  <p>Please take a look at this line:</p>
  
  <blockquote>
    <p>... The second column indicates whether classes in the same package as the class (<strong>regardless of their parentage</strong>) have access to the member. ...</p>
  </blockquote>
  
  <p>As far as i know, <code>package com.google</code> and <code>package com.google.music</code> are two separate packages. They have absolutely no connections. Their differences are just like the differences between <code>package com.google</code> and <code>package com.yahoo</code>.</p>
  
  <p>Is this true?</p>
  
  <p>Is there a way, or a keyword (public, private, protected, etc.), which can make the relations between <code>package com.google</code> and <code>package com.google.music</code> closer?</p>
  
  <p>Thanks!</p>