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
What does sprintf mean?
Does anyone still use java?
How do I enable java in safari?
What is byte data type?
Can a class be private?
What is the implementation of destroy method in java. Is it native or java code?
Write the algorithm to check the number non-leaf nodes in a tree.
Explain public static void main(string args[]) in java.
How do you escape sequences in java?
What is a literal coding?
Can you instantiate the math class in Java?
Can we declare a static variable inside a method?
when should you use stringbuilder class in a program?
What is final method?
When is the finalize() called? What is the purpose of finalization?