Home / CSE MCQs / JUnit MCQs :: Discussion

Discussion :: JUnit MCQs

  1. _______________ is used for the execution of the given tasks, returning a list of Futures holding their status and results after completion.
  2. A.
    isShutdown
    B.
    isTerminated
    C.
    invokeAll(Collection? extends Callable tasks)
    D.
    invokeAll(Collection extends Callable tasks, long timeout, TimeUnit unit)

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    Future.isDone() is true for each element of the returned list.


Be The First To Comment