LearnFrenzy
Sign in Take a free test

Concurrency and Executors · Concurrency and Executors MCQ · Question 8

What invokeAny returns Answer, explanation & discussion

  • MCQ
  • Medium
  • 0 comments
  • Answer explained
  • Moderated community
Question 8 Back to Exercise

What does invokeAny(tasks) return?

  • A All results
  • B The result of one task that completed successfully; the others are cancelled Correct
  • C The first task's Future
  • D A list of exceptions
Correct Answer: Option B

Useful for querying redundant services and taking the fastest answer.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links