+ 1
Why is the java Thread.interrupted method static?
Can someone explain to me why the Thread.interrupted method is a class method? I already know the difference between the interrupted and isInterrupted methods. Both get the interrupt flag and the interrupted method also deletes the interrupt flag. But why exactly is it static?
1 ответ
0
becsuse only one thread is current thread