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

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);
    }
}