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
Java is pass by value or pass by reference? Explain
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
What is the difference between normal report & matrix report?
why not override thread to make a runnable? : Java thread
What is meant by distributed application? Why are we using that in our application?
What are the parts of a method?
How do you start a new line in java?
Which class is the superclass for all the classes?
What are the advantages of java over C++?
Explain about interthread communication and how it takes place in java?
what is the swingutilities.invokelater(runnable) method for? : Java thread
What is valid keyword in java?
Define "Access specifiers" in java.
Is singleton a bad practice?
What are data types in programming?