title: What is a callback in java
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/824234/what-is-a-callback-function">What is a callback function?</a>  </p>
  </blockquote>
  
  
  
  <p>I have read the wikipedia definition of a callback but I still didn't get it. Can anyone explain me what a callback is, especially the following line </p>
  
  <blockquote>
    <p>In computer programming, a callback is a reference to executable code, or a piece of executable code, that is passed as an argument to other code. This allows a lower-level software layer to call a subroutine (or function) defined in a higher-level layer.</p>
  </blockquote>