Page 1223 - AP Computer Science A, 7th edition
P. 1223

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.


































































































   1221   1222   1223   1224   1225