Chapter 7 (Assertions and Java7 Exceptions) Q&A Self
test Question : 10
The answer is marked as D.
Shouldn't this be F : RuntimeException c with suppressed RuntimeException a
If I change the program to display suppressed exceptions as follows -
I get the output -
Supp : java.lang.RuntimeException :a
Exception in
thread "main" java.lang.RuntimeException: c