【资料题】(6-6)请阅读程序 写出程序运行结果。 class Test{ static int x=10; int y=99; { y=y+10;
已帮助 人
【资料题】(6-6)请阅读程序,写出程序运行结果。 class Test{ static int x=10; int y=99; { y=y+10; } static { x=x+5; } { y=y+10; } static { x=x+5; } public Test() {//构造方法 x=x+5; } { System.out.println(x*y); } } public class Demo11 { public static void main(String[] args) { Test t1=new Test(); Test t2=new Test(); } }

回答
共1条回复-
D
