- 继承自
Thread
重写run
方法public class MyThread extends Thread { @Override public void run() { System.out.println(getName()); S[......]
Java多线程的三种开启方式
Leave a reply
Thread
重写run
方法
public class MyThread extends Thread {
@Override
public void run() {
System.out.println(getName());
S[......]