Interview Questions

What is the purpose of yield() method in Thread Class?

This method is used to stop the currently executing thread and allow other threads in waiting state to be executed.