public Future<?> submit(Runnable task) {
if (task == null) throw new NullPointerException();
RunnableFuture<Object> ftask = newTaskFor(task, null);
execute(ftask);
return ftask;
}
void execute(Runnable command);
submit方法有返回值,execute方法没有返回值,submit内部实际还是调用的execute方法。