特牛生活网

Java线程之 InterruptedException 异常_cexception thread has been interrupted-CSDN博客

网友收藏
文章浏览阅读6.8w次,点赞18次,收藏57次。 当一个方法后面声明可能会抛出InterruptedException 异常时,说明该方法是可能会花一点时间,但是可以取消的方法。 抛InterruptedException的代表方法有:1. java.lang.Object 类的 wait 方法2. java.lang.Thread 类的 sleep 方法3. java.lang.Thread 类的 join 方法 _cexception thread has been interrupted