【系統公告】頁面上方功能列及下方資訊全面更換新版,舊用戶可再切回舊版。 前往查看

计算机等级考试— 二级—《 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)运行成功,但不输出


22)下列代码的执行结果是 public class Test { ..-阿摩線上測驗