Question: what is difference between sleep() and wait() method?
Answer: The major difference is to wait to release the lock or monitor while sleep doesn't release any lock or monitor while waiting. Wait is used for inter-thread communication while sleep is used to introduce pause on execution. ... Because you don't need to provoke any notify() or notifyAll() method to get that thread back.