Why should the following code in Java
System.out.println(new Integer(1)/ new Double(0));
print \'Infinity\' and not undefined. Isn\'t that
In short: floating point numbers can represent infinity (or even operations that yield values which aren't numbers) so an operation that results in this (e.g. dividing by 0) is valid.