Sleep () is a static method of thread class that is responsible for making the current thread in not runnable state for a particular time frame. At the same time, wait () is the method of an object...
Type: Posts; User: williamhills; Keyword(s):
Sleep () is a static method of thread class that is responsible for making the current thread in not runnable state for a particular time frame. At the same time, wait () is the method of an object...
The fundamental difference is wait() is from Object and sleep() is static method of Thread . The major difference is that wait() releases the lock while sleep() doesn't releas any lock while waiting....