News for hackers. Stuff that matters.
Re:In Java 3 = 12 by danielmg on Wednesday November 15, 2017 @02:16AM (#15702021)
It's evaluates left to right.

(1+2)=3 then concat with string = then concat with 1 and concat with 2.

The optimiser converts these concats to a StringBuilder.

https://docs.oracle.com/javase/specs/jls/se8/html/jls-15.htm...

Second time I've seen something like this on HN.

There are no comments on this comment yet.