可学答题网 > 问答 > SCJP程序员认证考试题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

foo and bar are&#819


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();
参考答案
参考解析:
分类:SCJP程序员认证考试题库
相关推荐

1、若a=5,b=3,c=4,逻辑表达式!(a+b)&;&;!c的值

若a=5,b=3,c=4,逻辑表达式!(a+b)&;&;!c的值为()A0B-1C1D2

2、TRR and TRT are̳

TRR and TRT are associated with Which WSA component?() A Web ReputationB L4TMC Anti-MalwareD URL Filter

3、AMPS通信系统属于第()代移动通信。

AMPS通信系统属于第()代移动通信。A第一代B第二代C第三代D第四代

4、AMPS属于()。

AMPS属于()。A1GB2GC3GD4G

5、cAMP(cyclic AMP)

cAMP(cyclic AMP)

6、表达式10>5&&6%3的值是()

表达式10>5&&6%3的值是()A-1B非零值C0D1