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

问题:

[单选]

现有: 
5.  class Order2 implements Runnable  {    
6.    public void run()  {    
7. for (int x- o;  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(1);  )  catch  (Exception e)  {  }
E .   try{Thread.sleep(100);  )  catch  (Exception  e)  {  }
F .   try{Thread.sleep(1000);  ) catch  (Exception  e)  { }

教育文献综述报告一般由哪几个部分组成? 谱系分类法 下列季节相反的一组国家是() 美国、俄罗斯。 中国、美国。 英国、南非。 巴西、阿根廷。 要使好氧微生物在生物反应器内正常生长繁殖,要求碳、氮、磷等营养盐的比例为:() 50:5:1。 100:5:1。 150:5:1。 200:5:1。 书面语

现有: 
5.  class Order2 implements Runnable  {    
6.    public void run()  {    
7. for (int x- o;  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?()     

参考答案:

  参考解析

本题暂无解析

在线 客服