Java Observer and Observable

Ads

 
 

Share on Google+Share on Google+

samar
Java Observer and Observable
1 Answer(s)      6 years and 11 months ago
Posted in : Java Interview Questions
How are Observer and Observable used?
Ads
View Answers

October 26, 2010 at 6:28 PM


Hi,

Here is the answer.

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.

Thanks.


Ads









Related Tutorials/Questions & Answers:
Java Observer and Observable
Java Observer and Observable  How are Observer and Observable used
Java Observable
Java Observable  How are Observer and Observable used
Advertisements
PHP Observer Method
($sender, $args); } interface Observable { function addObserver($observer...The PHP Observer Pattern: In the previous tutorial on Factory method we have... to avoid it using Factory method, Observer method works the same. This method
Version of com.mfizz>mfz-observer dependency
List of Version of com.mfizz>mfz-observer dependency
Version of com.mfizz>mfz-observer dependency
List of Version of com.mfizz>mfz-observer dependency
Version of com.mfizz>mfz-observer-jackson dependency
List of Version of com.mfizz>mfz-observer-jackson dependency
Version of com.mfizz>mfz-observer-common dependency
List of Version of com.mfizz>mfz-observer-common dependency
Version of com.mfizz>mfz-observer-core dependency
List of Version of com.mfizz>mfz-observer-core dependency
Version of com.mfizz>mfz-observer-metric dependency
List of Version of com.mfizz>mfz-observer-metric dependency
Version of com.mfizz>mfz-observer-server dependency
List of Version of com.mfizz>mfz-observer-server dependency
Version of com.mfizz>mfz-observer-common dependency
List of Version of com.mfizz>mfz-observer-common dependency
Version of com.mfizz>mfz-observer-core dependency
List of Version of com.mfizz>mfz-observer-core dependency
Version of com.mfizz>mfz-observer-jackson dependency
List of Version of com.mfizz>mfz-observer-jackson dependency
Version of com.mfizz>mfz-observer-metric dependency
List of Version of com.mfizz>mfz-observer-metric dependency
Version of com.mfizz>mfz-observer-server dependency
List of Version of com.mfizz>mfz-observer-server dependency
Maven Dependency mfz-observer >> 1.1.1
You should include the dependency code given in this page to add Maven Dependency of com.mfizz >> mfz-observer version1.1.1 in your project
Maven Dependency mfz-observer >> 1.1.0
You should include the dependency code given in this page to add Maven Dependency of com.mfizz >> mfz-observer version1.1.0 in your project
Maven Dependency mfz-observer-common >> 1.1.0
You should include the dependency code given in this page to add Maven Dependency of com.mfizz >> mfz-observer-common version1.1.0 in your project
Maven Dependency mfz-observer-common >> 1.1.1
You should include the dependency code given in this page to add Maven Dependency of com.mfizz >> mfz-observer-common version1.1.1 in your project
Maven Dependency mfz-observer-core >> 1.1.0
You should include the dependency code given in this page to add Maven Dependency of com.mfizz >> mfz-observer-core version1.1.0 in your project
Maven Dependency mfz-observer-core >> 1.1.1
You should include the dependency code given in this page to add Maven Dependency of com.mfizz >> mfz-observer-core version1.1.1 in your project
Maven Dependency mfz-observer-jackson >> 1.1.0
You should include the dependency code given in this page to add Maven Dependency of com.mfizz >> mfz-observer-jackson version1.1.0 in your project
Maven Dependency mfz-observer-jackson >> 1.1.1
You should include the dependency code given in this page to add Maven Dependency of com.mfizz >> mfz-observer-jackson version1.1.1 in your project
Maven Dependency mfz-observer-metric >> 1.1.0
You should include the dependency code given in this page to add Maven Dependency of com.mfizz >> mfz-observer-metric version1.1.0 in your project
Maven Dependency mfz-observer-metric >> 1.1.1
You should include the dependency code given in this page to add Maven Dependency of com.mfizz >> mfz-observer-metric version1.1.1 in your project
Maven Dependency mfz-observer-server >> 1.1.0
You should include the dependency code given in this page to add Maven Dependency of com.mfizz >> mfz-observer-server version1.1.0 in your project
Maven Dependency mfz-observer-server >> 1.1.1
You should include the dependency code given in this page to add Maven Dependency of com.mfizz >> mfz-observer-server version1.1.1 in your project
Java Util Package - Utility Package of Java
; Observer and Observable   Classes that implement the Observer interface... Java Util Package - Utility Package of Java       Java Utility package is one of the most
java - Java Interview Questions
java  what is advantage of observer ,observable class?why we using these two type?  Hi maheswari Java Provides builtin classes Observer and Observable to achieve this functionality.AWT/Swing event model uses
Java Project
Java Project  Java project using with collection and generic with observer design pattern
java.util - Java Interview Questions
description of java.util PackageThe Java util package contains the collections framework..., internationalization, and miscellaneous utility classesThe util package of java provides... learn all the java utility packages classes and interfaces.The classes