What is difference between
If we're talking about this
TimerThread, then there is no difference. The two ways to call
sleep() resolve to the same method (
I would expect this to be the case for any other reasonable class that extends
Thread. However, if in doubt, one can always check the source code for the class in question.
TimerThread extends Thread. So Thread.sleep(5000) and TimerThread.sleep(5000) is not different.