• 2022-06-07
    阅读下面的程序,下面说法中正确的是() public class Test{ public static int x = 10; public static int y = 20; public static void main(String[] args){ public int x = 100; public boolean b = true; System.out.println("x = "+x); System.out.println("b = "+b); System.out.println("y = "+y); } }
    A: 变量y是局部变量,b是成员变量。
    B: 不能输出y的值,这个程序运行后输出的结果是 x=10 b=true
    C: 这个程序运行后输出的结果是 x=10 b=true y=20
    D: 这个程序运行后输出的结果是 x=100 b=true y=20