What is update method and when it is called?

Answer Posted / raghuveer

update(Observable o,Object arg)
This method is called whenever the observed object is
changed. An application calls an Observable object's
notifyObservers method to have all the object's observers
notified of the change.
where:
o - the observable object.
arg - an argument passed to the notifyObservers method

Is This Answer Correct ?    17 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are predefined functions?

579


How do you sort an array in java?

543


Explain about instanceof operator in java?

609


Does every java program need a main?

538


What is meant by vector class, dictionary class, hash table class, and property class?

685






Can we able to pass objects as an arguments in java?

535


What is the static import?

591


Are maps ordered java?

513


What is derived datatype?

631


Define the term string pool?

590


How can a gui component handle its own events in java programming?

537


What is final, finally, finalize?

598


What is difference between next () and nextline () in java?

541


How will you get the platform dependent values like line separator, path separator, etc., ?

589


Can we call the run() method instead of start()?

593