下列程序的执行结果是 ( ) public class Test { public int aMethod() { satic int i=0; i++; System.out.

admin2009-02-15  24

问题 下列程序的执行结果是    (    )    public class Test    {       public int aMethod()    {       satic 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、运行成功,但不输出

答案1

解析
转载请注明原文地址:https://kaotiyun.com/show/18np777K
0

最新回复(0)