LearnFrenzy
Sign in Take a free test

Lambda Expressions · Lambda Expressions MCQ · Question 20

Runnable versus Callable Answer, explanation & discussion

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

How does Callable<V> differ from Runnable?

  • A It runs faster
  • B call() returns a value and may throw checked exceptions; run() returns void and cannot Correct
  • C It needs two arguments
  • D There is no difference
Correct Answer: Option B

Both are functional interfaces, so both accept lambdas.

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