what will happen if i call wait method on object outside of synchronisation block?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2779484/why-wait-should-always-be-in-synchronized-block">Why wait should always be in synchronized block</a>  </p>
</blockquote>



<p>What will happen if I call wait() and  notify(), notifyAll() method outside of synchronization ?
Does it has any effect ? </p>

<p>example </p>

<pre><code>Class Test(){
 Test(){
</code></pre>

<p>I know I am writing empty try catch </p>

<pre><code>   try{
      wait(); 
      notify();
      notifyAll();
   }catch (Exception ex)
  }
}
</code></pre>
