Why the out put of below code is Thread[main,5,main]

后端 未结 3 1366
迷失自我
迷失自我 2021-01-17 08:54
public class test1 {
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Thread t = Thread.currentThread();
        Syste         


        
3条回答
  •  南笙
    南笙 (楼主)
    2021-01-17 09:23

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

提交回复
热议问题