Syntactically right-associative means that prior to evaluating the expression, the latter is grouped so as to be able to univoquely evaluate the expression. No evaluations of the conditions are made yet, only after grouping the expression together.
Again a?b:c?d:e?f:g is first "grouped" as a ? b : (c ? d : (e ? f : g)) but the boolean expression a, c and e have not yet been evaluated.
Please refer to
JLS 15.25 Conditional Operator ? : for detailed information about the ?: ternary operator
Sorry, the frown face should be a semicolon ";" followed by a question mark "?", I don't know why the 2 marks appear as the frown face. The "instant Graemlins" got you
[ October 06, 2002: Message edited by: Valentin Crettaz ]