الرجوع
تسجيل الدخول

What is the output of the following code?

public class Test {
    public static void process(int num, double val) {
        System.out.println("Method with int, double: " + num + ", " + val);
    }

    public static void process(double val, int num) {
        System.out.println("Method with double, int: " + val + ", " + num);
    }

    public static void main(String[] args) {
        process(5, 10.0);
    }
}