Multiple choice

The method '____' waits for a thread to die.

  1. join

  2. stop

  3. enumerate

  4. yield

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The join() method causes the current thread to wait until the thread on which it is called completes execution. This is a fundamental thread synchronization mechanism in Java that ensures one thread waits for another to finish before proceeding.