题目

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

提示:未搜索到的试题可在搜索页快速提交,您可在会员中心"提交的题"快速查看答案。
答案
查看答案
相关试题

如果局域网互联采有Star-S2126G,则PC与交换机之间可采用哪种线连接?()

A、EIA/TIA568A直通线

B、反转线

C、交叉线

D、EIA/TIA568B直通线

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.

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

A

AD DS

B

MDT 2010

C

SQL Server

D

SCCM 2007

E

DHCP

F

DNS

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.

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.

联系我们 会员中心
返回顶部