aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Applets, I/O Streams and Oracle Database
  • In observable class, which of the following methods in Ja...
Multiple choice

In observable class, which of the following methods in Java returns the number of objects observing the invoking object?

  1. deleteObserver()

  2. hasChanged()

  3. countObservers()

  4. none of these

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

This method returns the number of objects observing the invoking object.

Keep practicing — related questions

  • Which of the following methods of Observable class returns the true value if the invoking object is modifie...
  • Which of the following methods of Object class is used to obtain a Class object that describes the invoking...
  • Which of the following methods of Class returns a Class object for each of the public classes and interface...
  • Which three are methods of the Object class? 1. notify(); 2. notifyAll(); 3. isInterrupted(); 4. synchroniz...
  • Which of the following methods of Class returns the complete name of the class or interface of the invoking...
  • Which of the following methods in ObjectInput interface returns the number of bytes that are now available ...
  • Which of the following objects in Java is notified when an event occurs?
  • In the main method of MyClassTester, how many objects of type MyClass are created?
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