Java / Java Multithreading
Difference between Thread.interrupted() and Thread.isInterrupted().
|interrupted() is a static method of Thread class and checks the current running thread if it is interrupted.||isInterrupted() is an instance method which checks the Thread object for its interrupt status that it is called on.|
|Calling interrupted() clears/reset the interrupt status of the current thread.||calling isInterrupted() does not affect the status of the thread object.|
More Related questions...