aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Programming Fundamentals
  • Which of the following methods of Thread class is used to...
Multiple choice

Which of the following methods of Thread class is used to resume execution of all threads waiting on the invoking object?

  1. notify()

  2. notifyAll()

  3. hashCode()

  4. none of these

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

This method of Thread class is used to resume execution of all threads waiting on the invoking object.

Keep practicing — related questions

  • Which of the following methods is used in Thread class to resume the execution of a Thread class?
  • Which of the following methods is used in Java to wake up all the threads that called wait in the same object?
  • Which of the following are not the methods of Thread class
  • Which three are methods of the Object class? 1. notify(); 2. notifyAll(); 3. isInterrupted(); 4. synchroniz...
  • Which of the following methods in interthread communication in Java wakes up all the threads that called wa...
  • Which class or interface defines the wait(), notify(),and notifyAll() methods?
  • Which class or interface defines the wait(), notify(),and notifyAll() methods?
  • Which class or interface defines the wait(), notify(),and notifyAll() methods?
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