1,executor, Executorservice, and Scheduledexecutorservice, they're all interfaces, Their relationship is scheduledexecutorservice inherit Executorservice and Executorservice and inherit executor.
These can be seen as a bit of open source code.
2, for the executor interface, it has only one method, void execute (Runnable command), and the subsequent executorservice and scheduledexecutorservice each add to their respective methods.
The executorservice is mainly related to the thread pool, while Scheduledexecutorservice is used to perform timed tasks.
3, because they are all interfaces, so to instantiate the word must have a common class, but Java provides a factory class executors specifically generated a variety of executor, shaped like:
Scheduledexecutorservice se = executors.newsinglethreadscheduledexecutor (); = Executors.newcachedthreadpool ();
Java re-learning--executor,executorservice,scheduledexecutorservice and executors