Java 程序开始执行时,哪个线程将启动? 这是在我的采访中被问到的。 所以任何人都可以在这里提出答案
最佳答案
来自 Thread
API文档
When a Java Virtual Machine starts up, there is usually a single non-daemon thread (which typically calls the method named main of some designated class).
这个线程将被称为主线程。
关于java - 澄清Java线程的概念,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23601861/