what's the difference between Executor and ExecutorService?

Java

Java Problem Overview


I am wondering what's the difference between Executor and ExecutorService?

Any example will help.

Java Solutions


Solution 1 - Java

Executor just executes stuff you give it.

ExecutorService adds startup, shutdown, and the ability to wait for and look at the status of jobs you've submitted for execution on top of Executor (which it extends).

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAdam LeeView Question on Stackoverflow
Solution 1 - JavaradaiView Answer on Stackoverflow