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
C. It sets the priority of the current thread
D. None of These
Answer: Option B
Join The Discussion