← Quiz: Scheduling and Async: all 10 questions
Quiz: Scheduling and Async · Question 8 of 10
What happens to an exception thrown inside a void @Async method?
What happens to an exception thrown inside a void @Async method?
- A.The caller receives it immediately
- B.The HTTP request fails with 500
- C.It does not reach the caller; by default it is only logged
- D.The application shuts down
Answer & explanation
Correct answer: It does not reach the caller; by default it is only logged
The caller has already moved on; return a CompletableFuture if failures must be seen.
Can you get the rest right without peeking?
Take the timed Quiz: Scheduling and Async quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →