Home / CSE MCQs / JUnit MCQs :: Discussion

Discussion :: JUnit MCQs

  1. Other than RejectedExecutionException, the execute(Runnable command) function can also throw which exception?
  2. A.
    Arithmetic
    B.
    ArrayIndexOutOfBounds
    C.
    StringIndexOutOfBounds
    D.
    NullPointerException

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    This exception is thrown if the command passed as argument is null.


Be The First To Comment