What does the `Thread.sleep()` method do in Java?
`Thread.sleep()` causes the current thread to pause for a specified time, but it still holds any locks it may have acquired.
That's correct! Even while sleeping, the thread continues to hold any locks it has acquired.
Can you explain how `Thread.sleep()` differs from `Object.wait()` in terms of lock handling?