Vidyalelo
Java Programming · Q16

Threads

Programming · Java Programming · question 16

Q16

What is the purpose of the yield() method in Java threads?

A.
It suspends the current thread indefinitely
B.
It suggests that the current thread should yield to other threads with the same priority
Answer
C.
It sets the priority of the current thread
D.
None of These

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board