第一种方法首先看下源码注释:A pool that is no longer referenced in a program ANDhas no remaining threads will be {@code shutdown} automatically. Ifyou would like to ensure that unreferenced pools are reclaimed evenif users forget to call {@link  
java
2023-11-29
176 点赞
2 评论
266 浏览