System.out.println(5/0.0);运算结果为
A: java.lang.ArithmeticException算数异常
B: Infinity
C: -Infinity
D: NaN
A: java.lang.ArithmeticException算数异常
B: Infinity
C: -Infinity
D: NaN
举一反三
- 数学运算-1/0的结果是( ) A: -Infinity B: 报错 C: -0 D: NaN
- System.out.println(Math.sqrt(-4D)); What is the result?() A: –2 B: NaN C: Infinity D: Compilation fails. E: An exception is thrown at runtime.
- (9-1)执行如下程序将输出( )。public class Demo2 {public static void main(String[] args) {System.out.println(3.0/0);} A: 抛出ArithmeticException B: 0 C: Infinity D: POSITIVE_INFINITY
- I have no idea ______. A: what does the word "infinity" mean B: what the word "infinity" means C: what the meaning of the word "infinity" D: what the word "infinity" mean
- var x1 = null,x2= Infinity ,x3 =NaN; document.write(typeof(x1) ); document.write(typeof(x2) ); document.write(typeof(x3) );