This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implementing function call-bak in JAVA ?

 
Agnes Hyndman
Greenhorn
Posts: 13
  • 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
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic