In Java, what is the purpose of the isInterrupted() method in threads?
A. It checks if a thread is a daemon thread
B. It checks if a thread is waiting
C. It checks if a thread is running
D. It checks if a thread has been interrupted
Answer: Option D
Join The Discussion