Question: what is difference between submit() and execute() method of executor and executorservice in java?
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.