爲什麼下面的代碼拋出異常?兩次調用啓動方法
class MyThread extends Thread
{
public static void main (String [] args)
{
MyThread t = new MyThread();
t.start();
System.out.print("one. ");
t.start();
System.out.print("two. ");
}
public void run()
{
System.out.print("Thread ");
}
}
你能指出我出到JLS
?
懶惰的問題。閱讀javadoc。 – 2014-10-05 13:21:18