标签:cat ack thread java基础 new ext 面试题 tar 基础
这个是我以前的一道面试题:
public class MyThread extends Thread {
@Override
public void run() {
try {
MyThread.sleep(1000);
System.out.println("thread ....正常运行");
} catch (InterruptedException e) {
e.printStackTrace();
}
super.run();
}
public static void main(String[] args) {
Thread rThread = new Thread(new MyThread());
rThread.start();
}
}
打印:thread ....正常运行
标签:cat ack thread java基础 new ext 面试题 tar 基础
原文地址:http://www.cnblogs.com/zlazm/p/7896542.html