Concatenating null strings in Java [duplicate]
Why must it work? The JLS 5, Section 15.18.1.1 JLS 8 § 15.18.1 “String Concatenation Operator +”, leading to JLS 8, § 5.1.11 “String Conversion”, requires this operation to succeed without failure: …Now only reference values need to be considered. If the reference is null, it is converted to the string “null” (four ASCII characters … Read more