This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implementing function call-bak in JAVA ?

 
Agnes Hyndman
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was recently asked how to implement function call-back in JAVA. My answer was to use Observer/Observable interfaces.
Is this answer correct ? Is there a way to do it without using interfaces ?
Thanks for the input !
 
Mark Herschberg
Sheriff
Posts: 6037
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This forum walks a fine line. In this cause, while undoubtedly an interview question, I think it's more appropriate for a different forum, specifically, Java In General (Adv), so I'm moving it there.
--Mark
 
Sridhar Garimella
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Go to this link
http://www.javaworld.com/javaworld/javatips/jw-javatip10.html
--Sridhar Garimella
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic