title: Put join on Main thread unexpected behaviour
body: <p>I wrote following Code :</p>
  
  <pre><code>public class ThreadDemo implements Runnable
  {
  private Thread t ;
  private String threadName;
  
   ThreadDemo(String threadName)
   {
  
       this.t = new Thread(this,threadName);
       t.start();
   }
  
  public void run()
  {
      System.out.println("New thread has been started!!!" + t.getName());
  
  }
  public  static void main(String args[])
  {
  new ThreadDemo("Thread-1");
  
  Thread t = Thread.currentThread();
  try {
      t.join();
  } catch (InterruptedException e) {
      e.printStackTrace();
  }
  
  new ThreadDemo("Thread-2");
  
  }
  
  
   }
  </code></pre>
  
  <p>So i have putted the join method on main thread .  When i run it ,its execution never end.
  Why it is so ? Why main thread doesn't end ? why it's running for infinite time.</p>