试题详情
- 单项选择题Given: 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, what provides the most reliable way to ensure that foo will stop executing wait()?()
A、foo.notify();
B、bar.notify();
C、foo.notifyAll();
D、Thread.notify();
E、bar.notifyAll();
F、Object.notify();
- E
关注下方微信公众号,在线模考后查看
热门试题
- Which two̳
- 现有: class&ens
- 以下关于Java HotSp
- 在一个单CPU的处理机中,有P
- 任意输入一个正整数,判断其是否是多因子完
- Given the&ensp
- 5. String&ensp
- 下面哪些方法禁止子类重定义该方法()
- 下面哪些布局管理影响容器内控件的大小()
- public class&e
- You need
- What is th
- Which element&
- 求三位奇数中,个位数字与十位数字之和除以
- 如果a,b是引用类型的变量,且赋值表达式
- 以下各项哪些不能成为GUI事件源?()&
- 抽象方法可以包含在任何类中()̳
- public class&e
- public class&e
- 现有: class&ens