title: How to stop a java program if it is determined it should not run?
body: <p>If I want to check if some preconditions are present in order to run a java program what is best?<br>
  Do:
  <code>System.exit(1);</code>  </p>
  
  <p>Or throw a <code>RuntimeException</code> in <code>main</code> to end the main thread? (No other threads running yet)</p>