Sunday, 21 April 2013

Class -7-When executed the following line of code will print System.out.println(-1 * Double.NEGATIVE_INFINITY);

Class -7-When executed the following line of code will print         System.out.println(-1 * Double.NEGATIVE_INFINITY);



package net.dharmaraj;

class dev {
public static void main(String ff[]) {
System.out.println(-1 * Double.NEGATIVE_INFINITY);
}
}



A) -Infinity
B) Infinity
C) NaN
D) -NaN

No comments:

Post a Comment