Answer Posted / ravikiran
yield() method will suspend all the same priority thread
which is running and gives chance to next thread to run
which is of the same priority
sleep() method will make the thread to sleep for a
particular period of time which is specified in the
argument list
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What are inbuilt functions in java?
What about interthread communication and how it takes place in java?
What is close method? How it's different from Finalize & Dispose?
How do you identify if jvm is 32-bit or 64-bit from java program?
What are different types of references?
What are different types of control structures?
Is sizeof a keyword in java programming?
When can you say a graph to be a tree?
What a static class can contains?
Write a program to search a number in the given list of numbers.
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
I want to store more than 10 objects in a remote server? Which methodology will follow?
What is bigger kb or mb?
Difference between Preemptive scheduling vs. Time slicing?
What is the purpose of main function in java?