Determine the output

Report a typo

What is the output of the code below?

public class OverloadingDemo {

    public static void method(int i, float f) {
        System.out.println("int float method");
    }

    public static void method(float f, int i) {
        System.out.println("float int method");
    }

    public static void method(int i1, int i2) {
        System.out.println("int int method");
    }

    public static void method(double d1, double d2) {
        System.out.println("double double method");
    }

    public static void main(String[] args) {
        method(1f, 1f);
    }
}
Select one option from the list
___

Create a free account to access the full topic