override ktr void ati star 打印 str @override ...
这个是我以前的一道面试题:
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 ....正常运行
Java基础中的一道面试题
override ktr void ati star 打印 str @override ...
原文:http://www.cnblogs.com/zlazm/p/7896542.html
来源: http://www.bubuko.com/infodetail-2407045.html