阿摩線上測驗
登入
首頁
>
计算机等级考试— 二级—《 JAVA 》
>
96年 - 2007年4月计算机等级考试— 二级—《 JAVA 》#13698
> 試題詳解
試題詳解
試卷:
96年 - 2007年4月计算机等级考试— 二级—《 JAVA 》#13698 |
科目:
计算机等级考试— 二级—《 JAVA 》
試卷資訊
試卷名稱:
96年 - 2007年4月计算机等级考试— 二级—《 JAVA 》#13698
年份:
96年
科目:
计算机等级考试— 二级—《 JAVA 》
22)下列代码的执行结果是 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)运行成功,但不输出
正確答案:
登入後查看