当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

下面代码的运行结果是public class Test{public static void main(String args[]){for(int i=0;i


下面代码的运行结果是 public class Test{ public static void main(String args[]){ for(int i=0; i<3;i++){ if(i<2) continue; System.out.println(i); } } }

A.0

B.1

C.2

D.3

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • ● 下面是一段 javabean 程序,该程序的运行结果是 (62) 。 public class NullTest { public static

  • 下面程序的运行结果为 #include<iostream.h> class A {int num; public: A(int) {num=i;} A(A &a

  • 下列代码的执行结果是()public class Test2{public static void main(String args[]){int a=4 b=

  • 下列代码的执行结果是()。 public class Test{ public int aMethod( ){ static int i=0; i++;

  • 下面Java程序的运行结果:()public class NULL { public static void haha(){ System.out.prin

  • 下列代码的执行结果是 public class Test{ public int aMethod( ) { static int i=0;