title: Choose between ExecutorService's submit and ExecutorService's execute
body: <p>How should I choose between <strong>ExecutorService's</strong> <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html#submit-java.util.concurrent.Callable-" rel="noreferrer">submit</a> or <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Executor.html#execute-java.lang.Runnable-" rel="noreferrer">execute</a>, if the returned value is not my concern? </p>
  
  <p>If I test both, I didn't see any differences among the two except the returned value.</p>
  
  <pre><code>ExecutorService threadExecutor = Executors.newSingleThreadExecutor();
  threadExecutor.execute(new Task());
  </code></pre>
  
  <hr>
  
  <pre><code>ExecutorService threadExecutor = Executors.newSingleThreadExecutor();
  threadExecutor.submit(new Task());
  </code></pre>