17. (D) An ArithmeticException will be thrown at run time. Note that if N were of type double, no exception would be thrown. The variable sum would be assigned the value Infinity, and the error would only be detected in the output.