摘要:
今天找了一篇讲InterruptedException的博客,拿来翻译共同学习一下: Don't swallow InterruptedException. Call Thread.currentThread().interrupt() instead. Have you ever written 阅读全文
posted @ 2016-02-14 20:45
gyt929458988
阅读(728)
评论(0)
推荐(0)
摘要:
首先贴一下overstack上的一个回答: 理解: (1)throws InterruptedException是你方法声明的一部分,也是你调用方法的返回值。 (2)当你的方法调用另一个方法的时候抛出了InterruptException异常,你就应该思考:InterruptException对于你 阅读全文
posted @ 2016-02-14 18:21
gyt929458988
阅读(252)
评论(0)
推荐(0)
浙公网安备 33010602011771号