设置线程名称

it2024-10-31  40

1:通过方法 setName(“线程一”); 2:通过有参构造函数 public demo1(String name){ super(name); }

最新回复(0)