Question: what is the fundamental difference between wait() and sleep() methods?
Answer: 1. Java sleep() and wait() – Discussion. sleep() is a method which is used to pause the process for few seconds or the time we want to. But in case of wait() method, thread goes in waiting state and it won't come back automatically until we call the notify() or notifyAll() .