Multiple choice

Which of the following methods in interthread communication in Java wakes up all the threads that called wait() on the same object?

  1. wait()

  2. notify()

  3. notifyAll()

  4. none of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This method in interthread communication in Java wakes up all the threads that called wait() on the same object.