且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么下面代码的输出是Thread [main,5,main]

更新时间:2021-12-05 04:16:51

因为 thread.toString() 返回此线程的字符串表示形式,包括线程的名称,优先级和线程组。

Because thread.toString() returns a string representation of this thread, including the thread's name, priority, and thread group.