title: In.java:16: error: cannot find symbol result=i+j;
body: <pre><code>class A
  {
      public void sum()
      {
          int i=5,j=5;
          System.out.println("Sum of "+i+" and "+j);
      }
  }
  class In extends A
  {
      public static void main(String args[])
      {
          A obj=new A();
          obj.sum();
          int result=0;
          result=i+j;
          System.out.println(" = "+result );
      }
  }
  </code></pre>
  
  <p>In.java:16: error: cannot find symbol result=i+j;<br>
  Why does the above error occur?</p>