5.4. String Conversion

String conversion applies only to an operand of the binary + operator which is not a String when the other operand is a String.

In this single special case, the non-String operand to the + is converted to a String5.1.11) and evaluation of the + operator proceeds as specified in §15.18.1.

Get The Java® Language Specification, Java SE 7 Edition, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.