Java的一些并发API也会抛出 InterruptedException 异常,如 sleep() 方法。正如在本案例中,已经休眠的线程被中断(使用 interrupted() 方法),也抛出了该异常。
InterruptedException
sleep()
interrupted()