4.2.24.A double value too small to be represented as a float becomes a positive or negative zero.
//A double value too large to be represented as a float becomes positive or negative infinity.
public class MainClass { public static void main(String[] argv) { double d = 1.1; float f = d;
System.out.println();
}
}
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Type mismatch: cannot convert from double to float
at MainClass.main(MainClass.java:4)