Answer Posted / ranganathkini
When a thread yields, its execution is paused and loses
ownership of the monitor lock giving other waiting threads a
chance to run.
When a thread sleeps, its execution is paused for the
specified duration during such an idle period, the thread
continues to retain the ownership of the monitor lock.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How does hashset work in java?
when to use ArrayList and when to use HashMap in webApplication.
Which package is always imported by default?
How to perform binary search in java?
Is alive in java?
Can we assign integer value to char in java?
Difference between character constant and string constant in java ?
What is finalize method?
Why can't we make a class private in java?
What is array and arraylist in java?
What is the dot operator?
Can you use this() and super() both in a constructor?
What is constructor chaining in java?
If I only change the return type, does the method become overloaded?
How many bytes is 255 characters?