Question: what is the difference between executor.execute and executor.submit in java?
Answer: As you see from the JavaDoc execute(Runnable) does not return anything. The difference is that execute simply starts the task without any further ado, whereas submit returns a Future object to manage the task. You can do the following things with the Future object: Cancel the task prematurely, with the cancel method.