Multiple choice

Which of the following methods makes the current thread to wait until other specified thread terminates?

  1. wait()

  2. join()

  3. notify()

  4. delay()

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

The join() method of thread class makes the current thread to wait until other specified thread terminates.