I would like to inquire the reason (rule in Java's design) that makes dealing with Arrays such as:
public static void main(String args[]){
System.out.println(args[2]);
}
not requiring a try and catch for ArrayIndexOutOfBoundsException
?
Are there some exceptions that are implicitly always method-throws
assigned by javac
or is javac simply inconsistent here?
Any answer would be appreciated to provide some references to he design specs/docu about this behaviour.