Question 5
Back to Exercise
A Callable throws NumberFormatException. What does future.get() throw?
- A NumberFormatException
- B ExecutionException whose cause is the NumberFormatException Correct
- C Nothing
- D InterruptedException
Correct Answer: Option B
getCause() gives the original exception.
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!