Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


How are Observer and Observable used?

Answers were Sorted based on User's Feedback



How are Observer and Observable used?..

Answer / nimisha

Objects that subclass the Observable class maintain a list
of observers. When an Observable object is updated it
invokes the update() method of each of its observers to
notify the observers that it has changed state. The
Observer interface is implemented by objects that observe
Observable objects.

Is This Answer Correct ?    2 Yes 1 No

How are Observer and Observable used?..

Answer / guest

Objects that subclass the Observable class maintain a list
of observers. When an Observable object is updated it
invokes the update() method of each of its observers to
notify the observers that it has changed state. The
Observer interface is implemented by objects that observe
Observable objects.

Is This Answer Correct ?    2 Yes 1 No

How are Observer and Observable used?..

Answer / supriya

Subclass of Observable class maintain a list of observers.
Whenever an Observable object is updated, it invokes the
update() method of each of its observers to notify the
observers that it has a changed state.
An observer is any object that implements the interface
Observer.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer



More Core Java Interview Questions

What is the basic difference between string and stringbuffer object?

0 Answers  


Infinite loop using while ?

4 Answers  


Is upper case in java?

0 Answers  


what is main purpose of abstract class?

7 Answers  


Can we catch more than one exception in single catch block?

0 Answers  






what is Dictionary? and what purpose it is used for?

3 Answers  


How can you traverse a linked list in java?

0 Answers  


What are assertions in java?

0 Answers   Impetus,


What are the different types of multitasking?

0 Answers  


What is generic type?

0 Answers  


What is parsing a string?

0 Answers  


What methods are used to get and set the text label displayed by a button object?

0 Answers  






Categories