title: How to run a thread separate from main thread in Java?
body: <p>The goal is to be able to invoke execution of a <strong>separate thread</strong> from within the <strong>main class</strong>.</p>
  
  <p>Some context:
  I have a program that must run a <strong>process</strong>.
  The process <strong>(a cmd one)</strong> should run only when the main program is done executing and is unloaded from memory.</p>
  
  <p>What code should I include in the <strong>main class</strong>?</p>