A

Admin • 802.91K Points
Coach

Q. What is the purpose of the `interrupt()` method in a thread?

  • (A) Stops the thread
  • (B) Pauses the thread
  • (C) Requests the thread to stop its execution
  • (D) Wakes up the thread

Explanation by: Admin
`interrupt()` sets the interrupted status of a thread, which can be checked using `isInterrupted()`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.