jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes Observor and Observable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Observor and Observable" Watch "Observor and Observable" New topic

Observor and Observable

Shishir malviya

Joined: Jun 21, 2005
Posts: 25
I know the meaning of these words but didn't get the practical aspect clear related to these concepts.If anybody can explain these concepts with the help of any example.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
These two taken together implement about the simplest possible way to couple an event source with an event listener, without either of them having to know which type of class the other one is. So while they are being coupled, they're not closely coupled.

There is a good tutorial on developerWorks called "Java event delivery techniques" which demonstrates this and other event techniques. Observer/Observable are kind of obsolete through the advent of newer mechanism in later JDKs.
Marcus Green
arch rival

Joined: Sep 14, 1999
Posts: 2813
These terms are not covered by any current version of the Sun Certified Java Programmers Exam

SCWCD: Online Course, 50,000+ words and 200+ questions
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Moving to Java In General (Beginner)

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
I agree. Here's the link: http://aspose.com/file-tools
subject: Observor and Observable
It's not a secret anymore!