Method overloading giving error with int & float : [A java programe code with showing method oveloading][1]


  [1]: https://i.stack.imgur.com/DzTkQ.png`public class Main {

    public static void main(String[] args) {
        System.out.println(add(2,4));
        System.out.println(add(2.3,3.4));
    }
    
    public static int add(int a, int b){
        return (a + b);
    }
    public static float add(float a, float b){
        return (a + b);
    }
}
`