previous | start | next

Answers

  1. To pass the exception message string to the RuntimeException superclass.
  2. Exception or IOException are both good choices. Because file corruption is beyond the control of the programmer, this should be a checked exception, so it would be wrong to extend RuntimeException.


previous | start | next