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

What will be the output of the following Java program involving shadowing?

public class Test {
    int x = 10;

    void method(int x) {
        System.out.println(x);
    }

    public static void main(String[] args) {
        new Test().method(20);
    }
}