What is the sleep() method?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the sleep() method?
Rating:
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.
Rating:
Was this information helpful?
Other articles
- What is the playTone() method?
- What is the setTransform() method?
- What is the recordAdded() method?
- What is the compare() method?
- What is the Sprite?