0
螺紋的螺紋可以通過實現Runnable作爲創建通過實現Runnable接口
public class Program implements Runnable{
public void run(){
System.out.println("Thread in progress");
}
public static void main(string args[]){
Program p1 = new Program();
new Thread(p1).start();
//we can also use
(new Thread(new Program())).start();
}
}
是一種方法優於其他產生的呢?