单项选择题

给出下列代码段: int i=3,j; outer:while(i>0) { j=3; inner:while(j>0) { if(j<3) break outer; System.out.println(j+"and"+i); j--; } i--; }下列选项中( )会被输出到屏幕。

A.3 and 3
B.3 and 2
C.3 and 1 D. 3 and 0
<上一题 目录 下一题>
热门 试题

单项选择题
给出下面代码段,x处于( )范围时打印字符串“second”。 pubhc class forLoopStatement{ public static voidmain(String[]args){ int x=______; 给x赋值 if(x>0) {System.out.println( second ); } else if(x>-3) {System.out.println( second ); } else { System.out.printlnCthird ); } } }
A.x>0
B.x>-3
C.x<=-3
D.x<=0 & x>-3
单项选择题
下列程序段的输出结果是( )。 public class operatorsandexpressions{ public static void main(String [] agrs){ int a=3,b=4,c=5; System.out.pfintln( abc +3); } }
A.15
B.abc3
C.256
D.63
相关试题
  • 欲构造ArrayList类的一个实例,此类继承了L...
  • 注释的基本原则不包括( )。
  • 在深度为7的满二叉树中,叶子结点的个数为...
  • 下列说法错误的是( )。
  • 要在一个单一的类文件中创建既可用作JavaAP...