In overloading when we overload a method why we cant make a new method which works same as overloaded method because we have to write the same number of line of code Such as in my example...why i cant make a new method b() which multiply two numbers.
public class que {
public void a(int a)
{
    System.out.println(a);
}
public  void a(int b,int c) {
  System.out.println(b*c);
}
public static void main(String[] args) {
    que queObject = new que();
    queObject.a(5);
    queObject.a(3,4);
}
}
 
     
     
     
     
     
     
    