title: Deadlocks using wait and notify
body: <p>I am trying to understand how deadlocks are created. I've understood that by using two threads on two synchronized methods, a deadlock can be created. 
  Went through many examples from the net.</p>
  
  <p>Can a deadlock be created with wait and notify? 
  Every time a thread is on wait, it will be notified. So how does this end up in a deadlock?</p>
  
  <p>Illustration of an example will be helpful. </p>