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

问题:

[单选] foo and bar are public references available to many other threads. foo refers to a Thread and bar is an Object. The thread foo is currently executing bar.wait(). From another thread, which statement is the most reliable way to ensue that foo will stop executing wait()? 

A .  foo.notify();
B .  bar.notify();
C .  foo.notifyAll();
D .  Thread.notify();
E .  bar.notiFYAll();
F .  Object.notify();

学前比较教育的主要研究方法是() 如何处理环境带来的压力?() 专注一件事情。 放松心情,培养合理的兴趣爱好。 寻求专业的心理医生帮助。 逃避环境。 简述退耕还林还草关键技术的研究内容。 作为一门学科,比较教育的形成开始于() 某水库工程验收工作中,属于政府验收的是()验收。 A.分部工程 。 B.单位工程 。 C.合同工程完工 。 D.下闸蓄水。 foo and bar are public references available to many other threads. foo refers to a Thread and bar is an Object. The thread foo is currently executing bar.wait(). From another thread, which statement is the most reliable way to ensue that foo will stop executing wait()? 
参考答案:

  参考解析

本题暂无解析

在线 客服