Q1.Which methods release the lock
1.wait() true
2.yeild() true
3.sleep() false
4.notify() false
5.suspend() false
6.stop() true
I think wait() is only one that releases the lock. yield() is not executed in the synchronized environment. stop() kills the
thread which might release the lock but it is deprecated in Java2 (I think). Please correct me if I am wrong