what is the Yield() method used in threads?
Answer Posted / chikku
This static method is essentially used to notify the system that the current thread is willing to "give up the CPU" for a while. The general idea is that:
The thread scheduler will select a different thread to run instead of the current one.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Can Exception handling we can handle multiple catch blocks?
Explain the difference between runnable and callable interface in java?
Is java ee a framework?
What is classpath?
Can an interface have a class?
How do you create immutable object in java?
which pattern is default in scanner package?
What is ++ a in java?
What is array and arraylist in java?
What does the @override annotation do?
Is set ordered in java?
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
What is the purpose of tostring() method in java?
what are different ways in which a thread can enter the waiting state? : Java thread
What is java argument list?