Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Observor and Observable

 
Shishir malviya
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 2813
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These terms are not covered by any current version of the Sun Certified Java Programmers Exam
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Java In General (Beginner)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic