这位兄弟,能不能告知下你面试的题目什么啊 ?(具体到题目的内容)我也想去34期,希望你给些指点,我在这先谢谢了。若是我考上了,到时深圳必须当面重谢。请发送到1192436809@qq.com。谢谢作者: 孔丽阁 时间: 2014-3-31 14:57
/**
* 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