24
Java guarantees (§15.7.1) that it will be evaluated left-to-right, giving 12. Specifically, ++ has higher precedence that +. So it first binds those, then it associates the addition operations left to right
i = (((++i) + (++i)) + (++i));
§15.7.1 says the left operand is evaluated first, and ...