Hi All,
One question asked for
Thread was : when you call wait() without having notify() or notifyAll() method , the thread should not come out of wait state . But in this code it does come out :
Try running theabove code and you will see the main thread coming out of wait state .
But if the above code is other way round :
Here the child thread is always in wait() state . Can you throw some light ?