title: Overloading and Java types concepts
body: <pre><code>public class Class2 extends Class1{
      public static void main(String[] args) {
          Class2 c2 = new Class2();
  
          c2.m3(10);
          c2.m3(10.5f);
          c2.m3('a');
          c2.m3(10l);
          c2.m3(10.5);
      }
  
      public void m2() {
          System.out.println("M1 method of class2");
      }
  
      public void m3(int i) {
          System.out.println("int argument");
      }
  
      public void m3(float j) {
          System.out.println("float argument");
      }
  }
  </code></pre>
  
  <p>Getting error when trying to call  c2.m3(10.5); Could you please assist why this is happening?</p>