当前位置:SCJP程序员认证考试题库

问题:

[单选]

1. class A implements Runnable ( 
2. int i; 
3. public void run () ( 
4. try ( 
5. thread.sleep(5000); 
6. i= 10; 
7. ) catch(InterruptedException e) {} 
8. ) 
9. ) 
10.   
11. public class Test { 
12. public static void  main (string args[]) (
13. try ( 
14. A a = new A (); 
15. Thread t = new Thread (a); 
16. t.start(); 
17.   
18. int j= a.i; 
19.   
20. ) catch (Exception e) {} 
21. ) 
22. }  
Which statement al line 17 will ensure that j=10 at line 19?()  

A .  a.wait();
B .  t.wait();
C .  t.join();
D .  t.yield();
E .  t.notify();
F .  a.notify();
G .  t.interrupt();

震源组合法 某电商D想撰写一条优质创意,可以考虑添加的信息要素有?() 产品概述。 核心竞争力。 促销信息。 竞争对手负面信息。 利用图像本来求反射率的方法有哪些? 公安机关在秦某被抢劫一案发生两周后,在某旧货市场抓获了正在出售一部“奥林巴斯”相机的李某。该“奥林巴斯”相机上标明的型号及编号与秦某手中购买相机的发票记载相同。经过对“奥林巴斯”相机的辩认,秦某指出相机镜头盖内刻有自己的名字,相机上还有两个月前修理时换的取景镜的粘贴痕迹。据此公安机关确定该相机就是秦某被抢的相机。但由于被抢的时候秦某没有看清犯罪嫌疑人的相貌,无法确认是李某进行抢劫。李某否认实施抢劫,他辩解说相机是他前几天在旧货市场从别人手里以低价买进的,但不知道卖主的姓名地址。李某的同乡作证说,听李某讲其前几天在旧货市场上买了一部照相机。公安机关在随后的侦查中未收集到其它有价值的证据。公安人员收集的证据中哪些是直接证据?哪些是实物证据? 简述风险

1. class A implements Runnable ( 
2. int i; 
3. public void run () ( 
4. try ( 
5. thread.sleep(5000); 
6. i= 10; 
7. ) catch(InterruptedException e) {} 
8. ) 
9. ) 
10.   
11. public class Test { 
12. public static void  main (string args[]) (
13. try ( 
14. A a = new A (); 
15. Thread t = new Thread (a); 
16. t.start(); 
17.   
18. int j= a.i; 
19.   
20. ) catch (Exception e) {} 
21. ) 
22. }  
Which statement al line 17 will ensure that j=10 at line 19?()  

参考答案:

  参考解析

本题暂无解析

在线 客服