public static boolean interrupted() method used in thread class

Q.  Which method is used in thread class to test if the current thread has been interrupted?
- Published on 13 Jul 15

a. public static boolean interrupted()
b. public boolean isInterrupted()
c. public void interrupt()
d. public boolean isAlive()

ANSWER: public static boolean interrupted()

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)