Collection and sharing of, interview questions and answers asked in various interviews, faqs and articles.....
Core Java :What is the difference between yielding and sleeping?
23What is the difference between yielding and sleeping? 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.
No comments:
Post a Comment