title: Does Application main method wait for Threads before it terminate
body: <p>Suppose I jave a Java application which have a Thread running inside it's main method.</p>
  
  <p>after all the code in the main method get executed. would the application wait for the Thread until it finish executing, or it will just terminate the application and the JVM.</p>