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

Which statement is tru


Which statement is true?()

  • A If only one thread is blocked in the wait method of an object, and another thread executes the modify on that same object, then the first thread immediately resumes execution.
  • B If a thread is blocked in the wait method of an object, and another thread executes the notify method on the same object, it is still possible that the first thread might never resume execution.
  • C If a thread is blocked in the wait method of an object, and another thread executes the notify method on the same object, then the first thread definitely resumes execution as a direct and sole  consequence of the notify call.
  • D If two threads are blocked in the wait method of one object, and another thread executes the notify method on the same object, then the first thread that executed the wait call first definitely resumes execution as a direct and sole consequence of the notify call.
参考答案
参考解析:
分类:SCJP程序员认证考试题库
相关推荐

1、Which statement is tru

Which statement is true about a whole consistent database backup on a database running in ...

2、Which statement is tru

Which statement is true about the class of an object that can reference the variable base...

3、Which statement is tru

Which statement is true?()AThe time to find the value from HashMap with a Person key de...

4、Which statement is tru

Which statement is true?()ACompilation succeeds.Bclass A does not compile.CThe method declared on line...

5、Which statement is tru

Which statement is true?()AThe output could be 5-1,6-1,6-2,5-2BThe output could be 6-1,6-2,5-1,5-2CTh...

6、Which statement is tru

Which statement is true?()ACompilation fails.BAn exception is thrown at runtime.CSynchronizing the run()&...