This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
The 10 is not interpreted as a double. It's an int literal constant.
The conversion is allowed because int -> long -> float is allowed. This is a widening conversion.
The constant's value 10 is small enough to fit into a float without losing any information (precision). Even if precision is lost you will not get an error. [ November 07, 2004: Message edited by: Barry Gaunt ]