欢迎来到PP题库网 PP题库官网
logo
全部科目 > Oracle认证考试 > 1z0-851

多项选择题

Which two statements are true?()

    A.It is possible for more than two threads to deadlock at once.
    B.The JVM implementation guarantees that multiple threads cannot enter into a deadlocked state.
    C.Deadlocked threads release once their sleep() method's sleep duration has expired.
    D.Deadlocking can occur only when the wait(), notify(), and notifyAll() methods are used incorrectly.
    E.It is possible for a single-threaded application to deadlock if synchronized blocks are used incorrectly.
    F.If a piece of code is capable of deadlocking, you cannot eliminate the possibility of deadlocking by inserting invocations of Thread.yield().

点击查看答案

相关考题

  • 单项选择题
    Given: What is the result?()

    A.Compilation fails.
    B.An exception is thrown at runtime.
    C.The code executes normally and prints "foo".
    D.The code executes normally, but nothing is printed.

  • 单项选择题
    Given: What is the result?()

    A.Compilation fails.
    B.An exception is thrown at runtime.
    C.The code executes normally and prints "sleep".
    D.The code executes normally, but nothing is printed.

  • 单项选择题
    Given: Which is true?()

    A.If line 10 is removed, the compilation succeeds.
    B.If line 11 is removed, the compilation succeeds.
    C.If line 12 is removed, the compilation succeeds.
    D.If line 13 is removed, the compilation succeeds.
    E.More than one line must be removed for compilation to succeed.

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

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