Both submit() and execute() schedule a task on an ExecutorService's thread pool, but execute() only accepts Runnable and returns nothing, while submit() accepts Runnable or Callable and returns a Future for retrieving results or exceptions.
Fire-and-forget logging can use executor.execute(() -> log(message)) since no result is needed, while a task computing a report should use Future<Report> future = executor.submit(() -> buildReport()) so the exception path and result are both properly observable via future.get().
executor.execute(() -> System.out.println("fire and forget"));
Future<Integer> future = executor.submit(() -> {
return computeValue();
});
Integer value = future.get(); // exceptions surface hereA concise interview answer is
execute() only takes a Runnable and gives you no way to observe completion or exceptions — it's fire-and-forget. submit() takes Runnable or Callable and always returns a Future, so you can retrieve a result and, importantly, exceptions thrown inside the task get captured and rethrown when you call future.get() instead of silently disappearing.
Last updated: 16 July 2026
Previous question: What is the role of ExecutorService in the Executor Framework? What methods does it provide?
Next question: What is the RejectedExecutionHandler in ThreadPoolExecutor? How can you customize it?