试题详情
- 单项选择题 public class Alpha1 { public static void main( String[] args ) { boolean flag; int i=0; do { flag = false; System.out.println( i++ ); flag = i < 10; continue; } while ( (flag)? true:false ); } } What is the result?()
A、 000000000
B、 0123456789
C、 Compilation fails.
D、 The code runs with no output.
E、 The code enters an infinite loop.
F、 An exception is thrown at runtime.
- B
关注下方微信公众号,在线模考后查看
热门试题
- 11. public&ens
- 下面有关java object
- ++op运算符的作用是先将变量的值加1再
- 现有: class&ens
- 一棵非空的二叉树的先序遍历序列与后序遍历
- volatile关键字的说法错误的是()
- 以下各项哪些不能成为GUI事件源?()&
- is-a关系是指()
- Which four&ensp
- 1. packageQ
- What is th
- public class&e
- 计算字符串中子串出现的次数
- Java 编译输出文件的后缀是()
- 现有: pub
- 现有: 一f对一个java
- public class&e
- java.awt.event.Mouse
- NumberFormat n
- Java中方法绑定有哪些形式?()