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

What is the output of the following code?

public class Test {
    public static void greet(String name) {
        System.out.println("Hello, " + name);
    }

    public static void greet(int number) {
        System.out.println("Number is " + number);
    }

    public static void main(String[] args) {
        greet("Alice");
        greet(5);
    }
}