Home » JAVA Programming » Methods » Question
  1. Which of these methods calls update() method?
    1. updateObserver()
    2. notifyObserver()
    3. observeObject()
    4. notify()
    5. None of these
Correct Option: B

notifyObserver() notifies all the observers of the invoking object that it has changed by calling update(). A null is passed as the second argument to update().



Your comments will be displayed only after manual approval.