Though both wait() and sleep() method are used to pause the running thread, here are some important difference between them:
1) The wait() method must be called from the synchronized context (can be a synchronized block or method) but sleep() method can be called from within our with-out synchronized block.