There are 10 threads waiting for the lock of an object. How will you bring the 5th thread myThread out of the waiting state?

  1. By calling notify(5)

  2. By calling notifyAll()

  3. By calling myThread.notify()

  4. By calling notify(myThread)

  5. None of these


Correct Option: D

Find more quizzes: