Which statements concerning the methods notify() and notifyAll() are true?
- A、Instances of class Thread have a method called notify().
- B、A call to the method notify() will wake the thread that currently owns the monitor of the object.
- C、The method notify() is synchronized.
- D、The method notifyAll() is defined in class Thread.
- E、When there is more than one thread waiting to obtain the monitor of an object, there is no way to be sure which thread will be notified by the notify() method.
正确答案:A,E
答案解析:有
微信扫一扫手机做题