Thread.interrupted()
is static method. Then how it is able to modify the interrupted flag of instance objects?
This question is not duplicate of
- How exactly does Thread.interrupt() and Thread.interrupted() work?
- What does java.lang.Thread.interrupt() do?
because they don't address the question mentioned in the description of this post.