欢迎来到易学考试网 易学考试官网
全部科目 > Java认证考试 > SCJP程序员认证考试

多项选择题

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.

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题