Thread sleep() method:
→ The sleep() method of Thread class is used to sleep a thread for the specified amount of time.
Thread class sleep methods:
→ public static void sleep(long miliseconds)throws InterruptedException
→ public static void sleep(long miliseconds, int nanos)throws InterruptedException
For more details & source code check out: https://programmingline.com/2018/02/sleep-method.html
#javathreadsleep #java #programmingline #rakesh…