Method overriding can have different number of parameters in subclass and parent class ?Can the no.of parameters differ?
<p>We have parent class and child class having common method <code>testparent()</code> but there is difference in parameters</p>

<p><strong>//Parent Class</strong></p>

<pre><code>  public class Overriding {

    int a,b,c;

   //Parameters are different in number

    public void testParent(int i, int j) {

       System.out.println(a+b);
    }
}
//Child Class Extending Parent Class Method
 class ChildOverriding extends Overriding {
      int c;

   public void testParent(int i,int j,int k) {

        System.out.println(a+b+c);
   }
  //Main Is not getting executed????
   public static void main(String args[]) {
     Overriding obj = new ChildOverriding();
     obj.testParent(1,4,8);
     }
  }
}
</code></pre>