当前位置:Java认证考试综合练习题库

问题:

[单选]

5. class Order2 implements Runnable { 
6. public void run() { 
7. for(int x = 0; x 〈 4; x++) { 
8. try { Thread.sleep(100); } catch (Exception e) { } 
9. System.out.print("r"); 
10. } } 
11. public static void main(String [] args) { 
12. Thread t = new Thread(new Order2()); 
13. t.start(); 
14. for(int x = 0; x 〈 4; x++) { 
15. // insert code here 
16. System.out.print("m"); 
17. } } } 
哪一个插入到第15行,最有可能产生输出 rmrmrmrm ?()  

A . Thread.sleep(1);
B . Thread.sleep(100);
C . Thread.sleep(1000);
D . try { Thread.sleep(100); } catch (Exception e) { }

锅炉平均蒸发量 循环经济的3R原则主要包括()。 无害化、再利用和资源化。 减量化、再利用和再循环。 减量化、再利用和资源化。 市政管理体制包括哪些内容? 我国城市政府的基本职能是什么? 装甲兵

5. class Order2 implements Runnable { 
6. public void run() { 
7. for(int x = 0; x 〈 4; x++) { 
8. try { Thread.sleep(100); } catch (Exception e) { } 
9. System.out.print("r"); 
10. } } 
11. public static void main(String [] args) { 
12. Thread t = new Thread(new Order2()); 
13. t.start(); 
14. for(int x = 0; x 〈 4; x++) { 
15. // insert code here 
16. System.out.print("m"); 
17. } } } 
哪一个插入到第15行,最有可能产生输出 rmrmrmrm ?()  

参考答案:

  参考解析

本题暂无解析

在线 客服