Home » JAVA Programming » Multithreading » Question
  1. Which of the following will ensure the thread will be in running state?
    1. Thread.killThread()
    2. yield()
    3. notify()
    4. wait()
    5. None of these
Correct Option: D

wait() always causes the current thread to go into the object’s wait pool. Hence, using this in a thread will keep it in running state.



Your comments will be displayed only after manual approval.