Home / CSE MCQs / JUnit MCQs :: Discussion

Discussion :: JUnit MCQs

  1. _____________ exception is thrown while invokeAll() is interrupted while waiting.
  2. A.
    InterruptedException
    B.
    NullPointerException
    C.
    RejectedExecutionException
    D.
    ArrayIndexOutOfBoundsException

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    If the exception is thrown, the unfinished tasks are cancelled.


Be The First To Comment