执行以下代码 为什么输出的值 是 2 public class TestThreadA { public static void main(String[] args) throws InterruptedException { System.out.println(Thread.activeCount()); } }
收起
你debug看下另外一条线程是什么
报告相同问题?