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

Java Observable

Ads

 
 

Share on Google+Share on Google+

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

October 19, 2010 at 5:23 PM


Hi,

Here is the answer.

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.

Thanks.


Ads









Related Tutorials/Questions & Answers:
Java Observable
Java Observable  How are Observer and Observable used
Java Observer and Observable
Java Observer and Observable  How are Observer and Observable used
Advertisements
Java Util Package - Utility Package of Java
Java Util Package - Utility Package of Java       Java Utility package is one of the most commonly used packages in the java program. The Utility Package of Java consist
PHP Observer Method
object make itself observable and other objects observed it. The object which is observed is called subject. When the observable object changes it passes some...($sender, $args); } interface Observable { function addObserver($observer
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.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
Core Java Interview Question Page 12  .... Question: How are Observer and Observable used? Answer: Objects that subclass the Observable class maintain a list of observers. When an Observable object
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
java
java   What is ?static? keyword
java
java  RARP implementation using java socket
java
java  sample code for RARP using java
java
java  Does java allows multiline comments
Java
Java  how to do java in command prompt
java
java  give a simple example for inheritance in java
java
java  give a simple example for inheritance in java
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  Write a java code to print "ABABBABCABABBA
java
java  write a program in java to acess the email