下面程序运行后的输出结果为() 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.程序运行出错

下面程序运行后的输出结果为() class A{ static int y=6; void showy(){ System.out.println(y=

热搜:下面程序的功能是输出数组s中最大元素