线程池的创建方式有哪些?

答案解析

常见创建方式:Executors工厂方法(newFixedThreadPool、newCachedThreadPool等)和ThreadPoolExecutor自定义参数(核心线程数、最大线程数、队列等)。