The sleep() method is a method of the Thread class. It suspends the execution of the thread from which it is called.
The execution is suspended for a specified amount of time. This duration is given in milliseconds. The general syntax of this method is as follows:
Here, the milliseconds parameter specifies the time.
Click here to download scmad test study guide and practice question. Best exam simulation SUN CX310-110 download free trial.