  |
Possiamo raffinare: |
try {
String fin = args[0];
//...
InputStream in = new FileInputStream(fin);
//...
} catch(ArrayIndexOutOfBoundsException ex) {
System.out.println("bad args");
} catch(FileNotFoundException ex) {
System.out.println("file not found");
}
  |
Si deve inserire una catch() |
  |
parametro di tipo compatibile (cioè uguale o derivato) |
|