📜  java代码示例中的可调用对象是什么

📅  最后修改于: 2022-03-11 14:52:49.101000             🧑  作者: Mango

代码示例3
public void executeTask() {
    executorService = Executors.newSingleThreadExecutor();
    Future future = executorService.submit(new EventLoggingTask());
    executorService.shutdown();
}