ProAnswers.org

What is difference between wait() and sleep() method?

  1. The wait() method is defined in Object class.

The sleep() method is defined in Thread class.

  1. wait() method releases the lock.

    The sleep() method doesn’t releases the lock.