public static void main(String[] args) {
new Thread(){
@Override
public void run() {
super.run();
for (int i = 0; i < 100; i++) {
System.out.println("Thread run");
}
}
}.start();
for (int i = 0; i < 100; i++) {
System.out.println("main run");
}
}
加入main函数先输出这100次,main函数会先结束吗!!
|