The condition expression returns the value according to the first one that is in this case 9.9 .If you change it to some other data type then the return will also be according to it.So the return is in the format of the first one
When an operator applies binary numeric promotion to a pair of operands, each of which must denote a value of a numeric type, the following rules apply, in order, using widening conversion (�5.1.2) to convert operands as necessary:
If either operand is of type double, the other is converted to double.
Otherwise, if either operand is of type float, the other is converted to float.
Otherwise, if either operand is of type long, the other is converted to long.
Otherwise, both operands are converted to type int.
The original link to the topic is here for the Conditional Operators in JLS.