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
Is 0 an irrational number?
Which collections are thread safe in java?
What does the three dot emoji mean?
Can we override a variable in java?
Can a class extend more than one class?
What is flush buffer?
What does java ide mean?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
How many threads does a core java have?
Can we declare the main method of our class as private?
Why null value is used in string?
What do you mean by byte code?
What is java lang object?
How to compare strings in java?
What is the method to declare member of a class static?