Interview Questions

What is the diference between interrupted and isInterupted() method in Thread?

interrupted() isInterupted()
It is a static method that checks whether the Thread has been interrupted and clears the interrupted status of the Thread. It is an instance method that checks whether the Thread has been interrupted or not.