Java compiler and string concatenation