Sortez l'instruction throw du bloc finally.
public static void main( String[] args ) {
int number = 0;
try {
number = Integer.parseInt( args[ 0 ] );
} finally {
System.out.println( "clause finally" );
}
if ( number == 0 ) {
throw new IllegalArgumentException( "Bad argument" );
}
}
|
|