title: How can the wait() and notify() methods be called on Objects that are not threads?
body: <p>How can the <code>wait()</code> and <code>notify()</code> methods be called on Objects that are not Threads? That doesn't really make sense, does it?</p>
  
  <p>Surely, it must make sense, however, because the two methods are available for all Java objects. Can someone provide an explanation? I am having trouble understanding how to communicate between threads using <code>wait()</code> and <code>notify()</code>.</p>