posted 17 years ago
what is the output?
{
Float f1 = new Float("4.4e99f");
Float f2 = new Float("-4.4e99f");
Double d1 = new Double("4.4e99");
System.out.println(f1);
System.out.println(f2);
System.out.println(d1);
}
output:
Infinity
-Infinity
4.4E99
How come it prints Infinity,-Infinity,and 4.4.E99
SCJP / Preparing For SCWCD