Java OCA OCP Practice Question 20

Question

A thread wants to make a second thread ineligible for execution.

To do this, the first thread can call the yield() method on the second thread.

  • A. True
  • B. False


B.

Note

The yield() method is static and always causes the current thread to yield.

In this case, ironically, the first thread will yield.




PreviousNext

Related