Vidyalelo
Java Programming · Q24

Threads

Programming · Java Programming · question 24

Q24

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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board