title: Why Thread is running after execution of main method?
body: <pre><code>public class TestThread {
  
      public static void main(String[] args) {
  
          System.out.println("Main Prgm Started...");
          Thread t1=new Thread(new Runnable() {
  
              @Override
              public void run() {
  
                  System.out.println("Thread is running..");
              }
          });
  
          t1.start();
  
          System.out.println("Main Prgm Exited...");
      }
  }
  </code></pre>
  
  <p>Output is:</p>
  
  <pre><code>Main Prgm Started...
  Main Prgm Exited...
  Thread is running..
  </code></pre>