Basic and Advance Java Question:
Download Job Interview Questions and Answers PDF
What is the difference between yielding and sleeping in Java Programming?
![Java Interview Answer Java Interview Question](https://globalguideline.com/public/images/interview/6.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 Interview Questions And Answers
PDF
Previous Question | Next Question |
How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters in Java Programming? | Is sizeof a keyword in Java Programming? |