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 |
what is the difference between static class and singleton class? can we create static class?
2 Answers L&T, Octazen, Vamsi Labs,
What is callablestatement? How you can call stored procedure to pass in parameter?
Every class extends object but why it is not possible for every object to invoke clone() method. ideally protected methods should be accessible from sub classes. isn't it?
What is Session reduplication and how its done?
Can we write multiple catch blocks under single try block?
When should the method invokelater() be used?
What is user defined exception in Java?
What are the Main functions of Java?
0 Answers Akamai Technologies,
can any body body expalin best definitions & best real time exaples for opps concepts.
How to call a Stored Procedure from JDBC?
what is the output ? Math.floor(-2.1) a)2 b)-2 c)-3.0 d)0
What is final class?