title: Not able to access protected fields or methods in the sub calls
body: <p>My program is as below:</p>
  
  <pre><code>package pack1;
  
  public class Parent {
   int i=0;
   protected j =1;
   public k = 2;
  }
  
  package pack2;
  
  import pack1.Parent;
  public class Child extends Parent {
  
   public static void main (String args[]) {
     Child c1 = new Child();
     c1.j = 100; // This is working fine
  
     Parent c2 = new Child();
     c2.j=200; // Compilation error
  
   }
  }
  </code></pre>
  
  <p>my question is : why we are nor able to access the protected member in the parent class with "c2".</p>