If a try statement has catch blocks for both Exception and IOException, then which of the following statements is correct?
B.
IOException is a subclass of Exception, so it must appear first in any related catch blocks.
If Exception was to appear before IOException, then the IOException block would be considered unreachable code because any thrown IOException is already handled by the Exception catch block.
Option B is correct.