多项选择题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 ofdeadlocking by insertinginvocations of Thread.yield().


您可能感兴趣的试卷

你可能感兴趣的试题

1.多项选择题

Given:

Which two can be results?()

A.java.lang.RuntimeException: Problem
B.run.java.lang.RuntimeException: Problem
C.End of method.java.lang.RuntimeException: Problem
D.End of method.run.java.lang.RuntimeException: Problem
E.run.java.lang.RuntimeException: ProblemEnd of method

最新试题

Given:What is the result?()

题型:单项选择题

Given:What is the result?()

题型:单项选择题

Given:Which command-line invocations will compile?()

题型:单项选择题

A team of programmers is involved in reviewing a proposed design for a new utility class. After some discussion, they realize that the current design allows other classes to access methods in the utility class that should be accessible only to methods within the utility class itself.What design issue has the team discovered?()

题型:单项选择题

Given a class whose instances, when found in a collection of objects, are sorted by using the compare To method, which two statements are true?()

题型:多项选择题

A class games.cards.Poker is correctly defined in the jar file Poker.jar. A user wants to execute the main method of Poker on a UNIX system using the command:java games.cards.Poker What allows the user to do this?()

题型:单项选择题

Given a method that must ensure that its parameter is not null:What, inserted at line 12, is the appropriate way to handle a null value?()

题型:单项选择题

Click the Exhibit button.Which graph represents the correct directory structure for a JAR file from which those classes can be used by the compiler and JVM?()

题型:单项选择题

Given:When the doSomething method is called, after which line does the Object created in line 5 become available for garbage collection?()

题型:单项选择题

Given:Which two code fragments, inserted independently at line 5, will compile without warnings?()

题型:多项选择题