aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
Multiple choice

The methods wait() and notify() are defined in

  1. java.lang.Runnable

  2. java.lang.Thread

  3. java.lang.Object

  4. java.lang.ThreadGroup

  5. none of the above

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

these are the members of Object class

Keep practicing — related questions

  • 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?
  • The wait(), notify(), notifyAll() methods can only be called by classes that are subclasses of Runnable or ...
  • Which of the following are not the methods of Thread class
  • wait(), notify(), notifyall() are methods of which class?
  • The methods wait(), notify() and notifyAll() in Object need to be called from synchronized pieces of code.
  • The methods wait(), notify() and notifyAll() in Object need to be called from synchronized pieces of code.

Practice this topic

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