题目内容
(请给出正确答案)
[主观题]
下列代码的执行结果是 public class Test{ public int aMethod() { static int i=0;
下列代码的执行结果是 public class Test{ public int aMethod() { static int i=0; i+ +; System.out.println(i); } public static void main(String args[ ]){ Test test = new Test(); test.aMethod(); } }
A.编译错误
B.0
C.1
D.运行成功,但不输出
查看答案
如果结果不匹配,请 联系老师 获取答案