Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


neelam
Java Observable
1 Answer(s)      3 years and 9 months ago
Posted in : Java Interview Questions


How are Observer and Observable used?

Advertisement
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.



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
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 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
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 Interview Questions 3
Java Interview Questions page 3   ... and Observable used? Answer: Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes
java
java  diff bt core java and java
java
java  what is java
Java
Java   Whether Java is pure object oriented Language
JAVA
JAVA  how the name came for java language as "JAVA
java
java  different between java & core java
java
java  explain technologies are used in java now days and structure java
java
java   why iterator in java if we for loop
java
java  is java open source
java
java  what is java reflection
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   in java does not pointers concept but what is nullpointers in java?   nullpointer is a runtime Exception
java
java  write a java program using filenotfoundexception
Java
Java  how to draw class diagrams in java
java
java   difference between class and interface
java
java  why multiple inheritance is not possible in java
java
java  explain object oriented concept in java
java
java  is java purely object oriented language
Java
Java   Whether Java is Programming Language or it is SOftware
java
java  what are JAVA applications development tools
java
java  how use java method
java
java  send me java interview questions
java
java  write a program in java to acess the email
java
java  Write a java code to print "ABABBABCABABBA
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  give a simple example for inheritance in java
java
java  give a simple example for inheritance in java
Java
Java  how to do java in command prompt
java
java  Does java allows multiline comments
java
java  sample code for RARP using java
java
java  RARP implementation using java socket
java
java   What is ?static? keyword
java
java  how can use sleep in java   which book learn of java language
java
java  different between java & core java print("code sample
java
java  different between java & core java print("code sample
java
java  how to edit text document by using java then how to edit starting and ending of text document by using java
java
java online telephone directory  i need coding for online telephone directory..by using java....pls help me
java
java code to search the nodes  how to write the java code to search the nodes using routers
java
java  why methods in java raise exceptions   Have a look at the following link: Java Exceptions
java
java  create java program for delete and update the details,without using database, just a normal java program
Advertisements
 

 

 

DMCA.com