Java Developer Question: Download Questions PDF
Can you please explain the difference between yielding and sleeping in Java Programming?
![Java Developer Interview Answer Java Developer Interview Question](https://globalguideline.com/public/images/interview/14.png)
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.
Download Java Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Is the size of a keyword in Java Programming? | How many bits are used to represent the Unicode, ASCII, UTF-16, and UTF-8 characters in Java Programming? |