Thread with sleep method
- 30th Oct 2017
- 0
- 8257
- how to make thread sleep in java sleep method in thread java Thread with sleep in java
The sleep() method of Thread class is used to pause the execution of current thread for specified time. This method takes the “long” value which is the actual time in milliseconds for thread to sleep. There are 2 overloaded methods available for sleep() 1) public static void sleep(long millis) throws InterruptedException 2) public static void […]