title: Throw an intentional exception to stop program executing in Java
body: <p>I put an exception intentionally to stop program executing but it seems that the executions continues after the exception is thrown. </p>
  
  <pre><code>try{
     System.out.println("Executing ");
     throw new RuntimeException("This is thrown intentionally");
  } catch {....
  }
  System.out.println("Must not execute");
  </code></pre>
  
  <p>I don't want to use <code>System.exit()</code> since I don't want to stop JVM and don't want to use <code>return</code> since I want it look like an error happened. Please help to on this.</p>