aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Advanced Java
  • Which of the following methods is used in Java to wake up...
Multiple choice

Which of the following methods is used in Java to wake up all the threads that called wait in the same object?

  1. wait()

  2. notify()

  3. notifyAll()

  4. start()

  5. sleep()

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

This method is used in java to wake up all the threads that called wait in the same object.

Keep practicing — related questions

  • Which of the following methods in interthread communication in Java wakes up all the threads that called wa...
  • Which of the following are not the methods of Thread class
  • Which of the following methods of Thread class is used to resume execution of all threads waiting on the in...
  • Which of the below methods in Java is not used with threads
  • What methods java providing for Thread communications
  • Which of the following methods of the Thread class is used to wait for a thread to complete?
  • Which of the following methods of Thread class waits for a thread to terminate?
  • Which three are methods of the Object class? 1. notify(); 2. notifyAll(); 3. isInterrupted(); 4. synchroniz...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Java Core Classes and Threads (1473 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy