在Java中处理InterruptedException
以下处理方法的区别是什么?InterruptedException?做这件事最好的方法是什么?
InterruptedException
try{ //...} catch(InterruptedException e) { Thread.currentThread().interrupt(); }
或
try{ //...} catch(InterruptedException e) { throw new RuntimeException(e);}
编辑:我还想知道这两种场景是在哪种情况下使用的。
蛊毒传说
茅侃侃
相关分类