Home » JAVA Programming » Multithreading » Question
  1. Which of the following stops execution of a thread?
    1. Calling read() method on an InputStream object
    2. Calling SetPriority() method on a Thread object
    3. Calling notify() method on an object
    4. Calling wait() method on an object
    5. None of these
Correct Option: C

notify() wakes up a single thread which is waiting for this object.



Your comments will be displayed only after manual approval.