Pg 71 : 3.3.3 - Assigning float to int or double to long and vice-versa

Date: 2018-11-26
Status: Fixed
Fixedinbuild:
09
Old Text:
Two errors - 1. Part of the sentence, "Java allows such assignments without a cast because it is possible to get back the exact same int or long value from a float or a double if you round them off." must be removed. 2. The statement, "i = f1; //will not compile" in the code should be removed.
New Text:
Java allows such assignments without a cast nonetheless.
Comments:
Reportedby:
Username987654

 Back