下面程序运行后的输出结果为() class A{ static int y=6; void showy(){ System.out.println(y=
已帮助 人
下面程序运行后的输出结果为() class A{ static int y=6; void showy(){ System.out.println("y="+y); } } class testA{ public static void main(String aaa []){ A a1 = new A(); A.y+=1; a1.y++; a1.showy(); } } 输出结果选择:
A.y=6
B.y=7
C.y=8
D.程序运行出错

回答
共1条回复-
sum=9
