Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

Java Observer and Observable

Ads

 
 

Share on Google+Share on Google+

samar
Java Observer and Observable
1 Answer(s)      6 years and 9 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-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
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
Core Java Interview Question, Interview Question
. Question: How are Observer and Observable used? Answer: Objects that subclass the Observable class maintain a list of observers. When an Observable object... Core Java Interview Question Page 12  
Java Interview Questions 3
: How are Observer and Observable used? Answer: Objects that subclass... Java Interview Questions page 3   ... as their default layout. Question: . How are Observer
Important Interview Questions in Core Java
/viewqa/Java-Interview-Questions/11384-Java-Observer-and-Observable.html Ques...Important Interview Questions in Core Java Core Java refers to the fundamentals of Java, necessary to learn all essential components for being a Java
Design Pattern
, to make GUI application and many more. Java API provides a built-in Observable class and Observer interface. Here we are taking an example just...;   Observer Design Pattern This design pattern defines one
Java Util Examples List
a Simple Event Notifier The Observer and Observable classes are useful... Java Util Examples List - Util Tutorials       The util package or java provides many
Java Program
Java Program  You are to create a game called â??Get Out of My Swampâ??. In this game an ogre, called â??Hekâ??, wanders around his swamp, if he... incorporate both the singleton pattern and the observer pattern into your game
Java Program
Java Program  You are to create a game called â??Get Out of My Swampâ??. In this game an ogre, called â??Hekâ??, wanders around his swamp, if he... both the singleton pattern and the observer pattern into your game. If you
java
java  diff bt core java and java
java
java  what is java
JAVA
JAVA  how the name came for java language as "JAVA
java
java   why iterator in java if we for loop
java
java  explain technologies are used in java now days and structure java
java
java  different between java & core java
Java
Java   Whether Java is pure object oriented Language
java
java  is java open source
java
java  what is java reflection
java
java   in java does not pointers concept but what is nullpointers in java?   nullpointer is a runtime Exception
java
what is the size of array in java ?  what is the size of array in java ? what is the mean of finalize in java