PPT Slide
try {
...
} // try
catch (IOException e) {
...
} // catch IOException
catch (FileNotFoundException e) {
...
// this code can never be reached because
// FileNotFound is subclass of IOException
} // catch FileNotFound Exception
This sequence of catches doesn’t work:
Inheritance and Exceptions
Previous slide
Next slide
Back to first slide
View graphic version