when wait() method is executed the
thread goes into the waiting state and releases the lock on the object.What happen's when we call a sleep() method from inside the synchronized code.Does thread release's the lock when it goes in to the sleeping state.?