InterviewSolution
Saved Bookmarks
| 1. |
Can You Please Explain The Difference Between Yielding And Sleeping In Java Programming? |
|
Answer» When a task invokes its yield() METHOD, it RETURNS to the ready STATE. When a task invokes its sleep() method, it returns to the WAITING state. When a task invokes its yield() method, it returns to the ready state. When a task invokes its sleep() method, it returns to the waiting state. |
|