Vidyalelo
Java Programming · Q17

Threads

Programming · Java Programming · question 17

Q17

In Java, what is the purpose of the interrupt() method in threads?

A.
It resumes the thread
B.
It pauses the thread
C.
It interrupts the normal execution of a thread, causing it to throw an InterruptedException
Answer
D.
It stops the thread permanently

Answer: Option C

Solution

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