why protected becomes private to other classes in different package of subclass
<p>why protected becomes private to other classes in different package of subclass .but it is still protected in same package of super class.</p>

<pre><code>package a;
class A
{
  protected a;
}

package b;
class B extends A
{
  B()
{
  System.out.println(a);
}
}

class C
{
  C()
  {
    System.out.println(new B().a);//error
   }

}
</code></pre>
