title: What is the relation between the main() method and main thread in Java?
body: <p>My tutor told me that the main thread is the parent thread of every thread, but he is not able to explain why.</p>
  
  <p>When I write a simple program:</p>
  
  <pre><code>Class A{}
  </code></pre>
  
  <p>Then it at the time of execution it throws an exception:</p>
  
  <pre><code>java.lang.NoSuchMethodError: main Exception in thread "main"
  </code></pre>
  
  <p>Is there any relation between the <code>main()</code> method and the main thread?</p>