Question: what is the difference between executor.submit() and executer.execute() method?
Answer: The submit() can accept both Runnable and Callable task but execute() can only accept the Runnable task. The submit() method is declared in ExecutorService interface while execute() method is declared in the Executor interface.