🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Java Multithreading: all 10 questions

Quiz: Java Multithreading · Question 4 of 10

What does join() do?

What does join() do?

  1. A.Merges two threads into one
  2. B.Waits until that thread finishes
  3. C.Starts the thread
  4. D.Locks an object
Answer & explanation

Correct answer: Waits until that thread finishes

The calling thread waits for the joined thread to terminate.

Can you get the rest right without peeking?

Take the timed Quiz: Java Multithreading quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →