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
Explain about automatic type conversion in java?
Can we override the static methods?
What is an empirical question?
What is mutable object and immutable object?
Explain list interface?
What is a string what operation can be performed out with the help of a string?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
What is executor memory?
Do I need java for windows 10?
What does the ‘static’ keyword mean? Is it possible to override private or static method in java?
Does java vector allow null?
Explain about varargs in java?
Tell me a few examples of final classes defined in Java API?
What does java stand for?
What are the 3 types of loops in java?