试题详情
- 多项选择题 public class Threads 1 { intx=0; public class Runner implements Runnable { public void run() { int current = 0; for(int=i=0;i<4;i++){ current = x; System.out.print(current + “, “); x = current + 2; } } } public static void main(String[] args) { new Threads1().go(); } public void go() { Runnable r1 = new Runner(); new Thread(r1).start(); new Thread(r1 ).start(); } } Which two are possible results?()
A、 0, 2, 4, 4, 6, 8, 10, 6,
B、 0, 2, 4, 6, 8, 10, 2, 4,
C、 0, 2, 4, 6, 8, 10, 12, 14,
D、 0, 0, 2, 2, 4, 4, 6, 6, 8, 8, 10, 10, 12, 12, 14, 14,
E、 0, 2, 4, 6, 8, 10, 12, 14, 0, 2, 4, 6, 8, 10, 12, 14,
- A,C
关注下方微信公众号,在线模考后查看
热门试题
- StringBuffer对象中的值是不可
- Which statemen
- 将单选框放到面板中时,以下注意事项中哪条
- Integer i&ensp
- 编程判断一个字符串是否是回文。
- public class&e
- 55.int[]x={1,2,3,4,
- 为了使得System.out.print
- 1. public&ensp
- 在Java中,有哪些图形界面开发工具包?
- 1. import&ensp
- What is th
- A web comp
- Given a f
- Java语言中异常的分类是哪项?()
- 有一堆桃子(个数不超过1000),如果分
- 以下关于复选框的描述中,错误的是?()
- 在输入流的read方法返回哪个值的时候表
- For a gi
- A developer&en