Google News
logo
Java Multithreading - Interview Questions
Why sleep() and yield() are static methods in Thread class?
You can call sleep() and yield() method on current executing thread. If there is in wait state, you can not call these methods.
 
To avoid the confusion for programmers, there methods are made static.
Advertisement