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 is main string [] args?
What is java util hashmap?
What is character in data type?
Can we declare a static variable inside a method?
What is pangram in java?
What is this keyword used for?
What is outofmemoryerror in java?
State one difference between a template class and class template.
What is void class in java?
Is java se free?
Explain the difference between intermediate and terminal operations in java8?
What is floor in java?
What is the difference between static class and normal class?
Where are the card layouts used?
What differences exist between iterator and listiterator?