/**
* When an object implementing interface <code>Runnable</code> is used
* to create a thread, starting the thread causes the object's
* <code>run</code> method to be called in that separately executing
* thread.
* <p>
* The general contract of the method <code>run</code> is that it may
* take any action whatsoever.
*
* @see java.lang.Thread#run()
*/
public abstract void run();
上面是接口Runnable的方法定义,如果你在你的实现里边抛出了异常,就和Runnable中定义的run方法有了冲突--一个抛出异常,一个没抛。所以只能try |