الرجوع
تسجيل الدخول
أنت تتصفح نسخة مؤرشفة من الموقع اضغط للانتقال إلى الموقع الجديد بكامل المزايا

What is the output of the following code?

public class Main {
    static void method(int a, int b) {
        System.out.print("Method A");
    }

    static void method(char a, String b) {
        System.out.print("Method B");
    }

    public static void main(String[] args) {
        method('a', "hello"); 
    }
}