public class Test { public static void main(String args[]){ System.out.println("The value is :" + Float.POSITIVE_INFINITY==Float.NEGATIVE_INFINITY); } } What will be the result ? True or false ?
Hi, The result will be false, using the logic we call COMMON SENSE. The values POSITIVE_INFINITY and NEGATIVE_INFINITY are the farthest apart values known to humans ... Regards, Manfred
Namra3, Please read the JavaRanch Name Policy and re-register using a name that complies with the rules. Thanks for your cooperation. ------------------ Jane Griscti Sun Certified Programmer for the Java� 2 Platform