Escolar Documentos
Profissional Documentos
Cultura Documentos
//programa: UsingExceptions.java
try {
...
}
catch (ArrayIndexOutOfBoundsException e) {
System.err.println("Caught ArrayIndexOutOfBoundsException: "
+ e.getMessage());
}
catch (IOException e) {
System.err.println("Caught IOException: " + e.getMessage());
}
try {
...
}
catch (Exception e) {
System.err.println("Exception caught: " + e.getMessage());
}