-3
是在Runnable中創建一個新線程的好習慣嗎?這是使用可運行線程創建線程的gud實踐嗎?
public class ExampleThread Implements Runnable{
public void run() {
try {
//Some functions
}
catch (IOException e) {
}
new Thread() {
public void run()
// some functions
}}.start();
}
爲什麼我得到了downvotes? – Asthme 2014-10-03 10:48:18