How are Observer and Observable used?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Will minecraft java be discontinued?
Why is a constant variable important?
What is the difference between stringbuffer and stringbuilder class?
Why java does not supports multiple inheritance?
What are the types of java languages?
Can main() method in java can return any data?
Java Compiler is stored in JDK, JRE or JVM?
What is jvm? Why is java called the platform independent programming language?
What is meant by tab pans?
What are the different ways of implementing thread? Which one is more advantageous?
What is the syntax and characteristics of a lambda expression?
What is the common usage of serialization? What exceptions occur during serialization?