Hello, Jeanne and Scott. I believe that there is a potential error in Chapter 5 summary and Exam Essentials.
A suppressed exception occurs when more than one exception is thrown, often as part of a finally block or try‐with‐resources close() operation. The first exception to be encountered will be the primary exception, with the additional exceptions being suppressed
A try‐with‐resources statement, as well as a try statement with a finally block, may generate multiple exceptions. The first becomes the primary exception, and the rest are suppressed exceptions.
Maybe, I am wrong, but as I was thinking the only exception thrown in implicit finally of try with resources, in close method will become suppressed. Exception from regular finally will become primary and original exception will be lost.
The Java® Language Specification (=JLS) only mentions suppressed exceptions in the context of try with resources. The Throwable#addSuppressed() method was introduced in Java7 (same time as try with resources). It would appear that an exception from a try which is obscured by that in a finally isn't called suppressed in the JLS.