Java提供的四种常用线程池解析。

答案解析

四种常用线程池:FixedThreadPool(定长)、CachedThreadPool(弹性)、SingleThreadExecutor(单线程)、ScheduledThreadPool(定时/周期任务),适合不同任务场景。