试题详情
- 单项选择题 Which statement is true?()
A、This code can throw an InterruptedException.
B、This code can throw an IllegalMonitorStateException.
C、This code can throw a TimeoutException after ten minutes.
D、Reversing the order of obj.wait() and obj.notify() might cause this method to complete normally.
E、A call to notify() or notifyAll() from another thread might cause this method to complete normally.
F、This code does NOT compile unless "obj.wait()" is replaced with "((Thread) obj).wait()".
- B
关注下方微信公众号,在线模考后查看
热门试题
- public class&e
- Which is e
- 1. interface&e
- Which willQ
- 1. class
- 编写一个字符界面的JavaApplica
- 往OuterClass类的代码段中插入内
- 下列哪项是Java语言中所定义的字节流?
- 抓交通肇事犯: 一辆卡车违反交通规则,撞
- 程序员想要创建一个名为MyThread
- Which the stat
- 简述对象、类和实体及它们之间的相互关系。
- public class&e
- 下面有关 JAVA
- Which additions
- Which three&ens
- 11.class Snoochy{ 1
- 11. String&ens
- Which two
- A web app