As Examples of hierarchy: |
catch(FileNotFoundException e) { .. } would catch particular exception whereas |
catch(IOException e) { .. } would catch all IOexceptions |
Throwable |
. . . |
Error |
Exception |
RuntimeException |
IOException |
EOFException |
FileNotFoundException |
InterruptedIOException |