Why does this generate an ArithmeticException / by zero:
for (int i = 1; i <= 5; i++) {
System.out.println(i);
int a = i / 0;
System.out.println(a);
}
And that does not (print "Infinity")?
for (int i = 1; i <= 5; i++) {
System.out.println(i);
double a = i / 0.0;
System.out.println(a);
}