Multiple choice

Which of the following exceptions is thrown when one thread has been interrupted by another thread?

  1. ClassNotFoundException

  2. IllegalAccessException

  3. InstantiationException

  4. InterruptedException

  5. NoSuchFieldException

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This exception is thrown when one thread has been interrupted by another thread.