Thread.activeCount() return value
public class ThreadActiveCountTest { public static void main(String[] args) { System.out.println(Thread.activeCount()); } }
Thread.activeCount() This method returns the number of active threads in the current thread's thread group.
The values returned by the IDE are not the same, 1 is returned in Eclipse, and 2 is returned in Intellij idea.