Since a multi-catch is used, the variable in the catch block is effectively final and cannot be reassigned.
Same issue, shouldn't it be implicitly final?
OCA Java 6, OCP Java 6, OCP Java 8
posted 4 years ago
I just noticed that the examples in the Rethrowing Exceptions section of Chapter 6 (starting on page 305) treat DateTimeParseException as if it's a checked exception.
But DateTimeParseException extends DateTimeException, which extends RuntimeException.
On page 305:
Suppose that we have a method that declares two checked exceptions:
On page 306:
(...) we need to handle or declare those two exception types.
and so on.
Perhaps DateTimeParseException could be swapped for ParseException in the examples?