首页计算机考试Oracle认证
(多选题)

Given that Triangle implements Runnable, and: Which two statements, inserted independently at both lines 35 and 41, tend to allow both threads totemporarily pause and allow the other thread to execute?()

AThread.wait();

BThread.join();

CThread.yield();

DThread.sleep(1);

EThread.notify();

正确答案

来源:www.examk.com

答案解析

相似试题

  • (多选题)

    Given: Which code, inserted at line 4, guarantees that this program will output [1, 2]?()

    答案解析

  • (单选题)

    Given that the current directory is empty, and that the user has read and write permissions, and thefollowing: Which statement is true?()

    答案解析

  • (单选题)

    Given:   11. public void genNumbers() {   12. ArrayList numbers = new ArrayList();   13. for (int i=0; i

    答案解析

  • (单选题)

    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?()

    答案解析

  • (单选题)

    Given: Which statement is true about the class of an object that can reference the variable base?()

    答案解析

  • (单选题)

    Assuming that the serializeBanana() and the deserializeBanana() methods will correctly use Javaserialization and given: What is the result?()

    答案解析

  • (单选题)

    Given that the elements of a PriorityQueue are ordered according to natural ordering,and: What is the result?()

    答案解析

  • (单选题)

    Given that the current directory is empty, and that the user has read and write privileges to the currentdirectory, and the following: Which statement is true?()

    答案解析

  • (单选题)

    Given: Which line of code marks the earliest point that an object referenced by intObj becomes a candidate for garbage collection?()

    答案解析

  • (单选题)

    Evaluate the following SQL statements that are issued in the given order: What would be the status of the foreign key EMP_MGR_FK?()

    答案解析

快考试在线搜题