+ 2

What is the "sleep method"?

16th Sep 2016, 12:41 AM
violet
3 Antworten
+ 3
The sleep() method of Thread class is used to sleep a thread for the specified amount of time.
16th Sep 2016, 9:16 AM
Bhushan Gaikwad
Bhushan Gaikwad - avatar
+ 1
Ok good to know
1st Oct 2016, 2:29 PM
violet
0
it is basically used to give delay for some specified time so that the standard output can be seen at a specific time
1st Oct 2016, 2:08 PM
Rolwin