测试代码:
public class Test {
public static void main(String[] args) {
System.out.println(Thread.activeCount());
}
}
idea运行,输出为“2”
eclispe运行,输出为“1”
jdk编译运行,输出为“1”
时间: 2024-12-10 04:59:09
测试代码:
public class Test {
public static void main(String[] args) {
System.out.println(Thread.activeCount());
}
}
idea运行,输出为“2”
eclispe运行,输出为“1”
jdk编译运行,输出为“1”