Multiple choice

Which of the following methods of Observable class returns the true value if the invoking object is modified and false if it is not?

  1. countObservers()

  2. deleteObserver()

  3. hasChanged()

  4. setChanged()

  5. addObserver()

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

This method of Observable class returns true value if the invoking object has been modified and false if it has not.