Why wait (), notify () and notifyAll () must be called from synchronized block in Java - 0 views
-
Javin Paul on 21 May 11Best article I have come acrsoo about wait()notify() and notifyAll() methods in java in internet. these method forms the inter-thread communication and correct understanding of these methods are must. wait() and notify)() method has to be called from synchronized method or block but why ?? This same questions was asked in a Java interview to me and I didn't know the correct answer ahh.