🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.The caller receives it immediately
  2. B.The HTTP request fails with 500
  3. C.It does not reach the caller; by default it is only logged
  4. 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 →