title: Using join() vs. wait() thread java
body: <p>I need to make sequence of threads. They need to start in order like this: </p>
  
  <p><code>A then B then C and finally D.</code></p>
  
  <p>When D is finished then C can finish then B, then A.</p>
  
  <p>In this situation what is better to use <code>join()</code> threads or <code>wait()</code>? and why?</p>
  
  <p>My threads need to start and print the message <code>Hello I'm thread a/b/c/d</code> and when they are finished they need to print <code>I'm finished a/b/c/d</code>.</p>