Why does Thread.isInterrupted () always return false?
This behaviour is typically documented in methods that throw that exception. For example, the javadoc for Object.wait() says: “InterruptedException – if any thread interrupted the current thread before or while the current thread was waiting for a notification. The interrupted status of the current thread is cleared when this exception is thrown.“ Indeed, the javadoc … Read more