What is InterruptedException? Why do we need to catch it when calling Thread.sleep()?
Created May 4, 2012
This means that you can safely ignore the exception (with catch (InterruptedException e) {}) since in general, only code that you write will ever call interrupt. Since you didn't write it, you know it won't happen. :-)
InterruptedException was not implemented in Java 1.0; however, it is definitely available now.
See also Is it possible to interrupt a running thread? for interesting details.