下列代码的执行结果是( )。 public class Test{ public int aMethod( ){ static int i=0; 1++; System.out.println(i): } public static void main (String args[]){ Trest test=new Test ( ); test aMethod( ): } }
A、
编译错误
B、
0
C、
1
D、
运行成功,但不输出
【正确答案】
A
【答案解析】
提交答案
关闭