题目

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();

答案
查看答案
相关试题

The server room that an administrator manages has just caught fire. Which of the following is the FIRST thing that the administrator should do?()

A、 Evacuate all personnel.

B、 Notify staff of the potential service outage.

C、 Use fire suppression techniques until the fire department arrives.

D、 Grab the backup tapes and exit the server room.

以下关于基准测试的叙述中,正确的是()

A、运行某些诊断程序,加大负载,检查哪个设备会发生故障

B、验证程序模块之间的接口是否正常起作用

C、运行一个标准程序对多种计算机系统进行检查,以比较和评价它们的性能

D、根据程序的内部结构和内部逻辑,评价程序是否正确

The server administrator has just brought a new Windows server online. Permissions are set, but the server administrator cannot connect remotely. Which of the following is MOST likely the problem?()

A、WMI was not enabled.

B、Server service was not enabled.

C、RDP was not enabled.

D、Workstation service was not enabled.

以下哪些是在在使用WDS部署Windows 7镜像时所必须的?()

A

AD DS

B

MDT 2010

C

SQL Server

D

SCCM 2007

E

DHCP

F

DNS

An administrator needs to implement a security patch policy on the network that adheres to aninternal SLA.  Which of the following actions BEST achieves this task?()

A、 Define a test server group, install the patches and if successful schedule installation on production servers.

B、 Define a test server group, schedule installation on production servers and then install all updates and patches.

C、 Install the patches during a non-working hour.

D、 Send an email to all company users and request the best time for installation.

最新解答的试题
付款人在进行付款时无()

A.形式审查义务

B.实质审查义务

C.附带审查义务

D.票据外有关事项的审查义务
根据《公司法》的规定,有限责任公司下列人员中,可以提议召开股东会临时会议的是()。
A.总经理B.人数过半数的股东C.监事会主席D.人数为半数的董事
关于股份有限公司中的监事会,下列说法错误的是()

A.监事会负责提议聘请或更换外部审计机构B.监事会主席和副主席由全体监事过半数选举产生C.监事会中的职工代表的比例不得低于三分之一D.监事会应至少每6个月召开一次会议
三北精神的科学内涵
阿里巴巴提供了“企业名称认证”“企业身份认证”不同种类的认证,可以根据自身的