title: "field not visible" error in Java
body: <p>i'm new to programming, so i'm just trying out some simple programs...  </p>
  
  <pre><code>  public class simple {
          public static void main(String[] args) {        
          A ob=new A(10,20);
          System.out.println("values of a and b are "+ob.a+" "+ob.b);
          }                                                    ^
      }                                                        ^
  
  
  public class A {
      int a;
      private int b;
      A(){}
      A(int c,int d)
      {
          a=c;
          b=d;
      }
  }
  </code></pre>
  
  <p>error displayed was <code>field ob.b not visible</code>..i'm using eclipse, need to know what is wrong with the above code..</p>
  
  <p>Thank you!</p>