title: How to stop thread returning before Join() is called
body: <p>This is purely a theoretical question as I'm not sure the conditions to cause this issue would be common.</p>
  
  <p>Say for example you have a thread that you kick off with it's start method:</p>
  
  <pre><code>Thread c = new Thread();
  c.start();
  </code></pre>
  
  <p>Then directly after, you call the Join() method on the thread to tell the method you are in to wait until the thread had been executed to continue.</p>
  
  <pre><code>c.join();
  </code></pre>
  
  <p>Isn't it a possibility that the thread could possibly be executed and finish before the join method is called, therefore leaving the method unaware that it had to wait for c to finish before it continued? I suppose you could try calling the join() method before you call the start() method, yet whenever I've tried this in test cases, there is an error.</p>
  
  <p>Anyone know a possible fix for this, or does the JVM handle it? As I said I haven't been able to trigger this sort of situation, but theoretically it is possible...</p>