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.
Download free practice test for SUN SCMAD exam. Become SUN SCMAD Mobile Application Developer certified.
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.