title: Difference between Hooks and Abstract Methods in Java
body: <p>This is a quoted question from the study materials from my university.</p>
  
  <p>It makes totally no sense to me.</p>
  
  <p>For me hooks are specified points in (mostly sequential but not only) programs, where you can specify your own methods or callbacks to be executed.</p>
  
  <p>For example an application has an "on before shutdown hook", i can register my callback method there that saves the user data to disk before shutdown.</p>
  
  <p>Abstract methods are self explaining.</p>
  
  <p>To me this is something completely different? or does either of those things have a 2nd meaning I don't know of? I did a quick search but didn't find anything.</p>