CHAPTER 5: Conversions and Promotions Previous
Previous
Java Language
Java Language
Index
Index
Next
Next

5.4 String Conversion

String conversion applies only to the operands of the binary + operator when one of the arguments is a String . In this single special case, the other argument to the + is converted to a String , and a new String which is the concatenation of the two strings is the result of the + . String conversion is specified in detail within the description of the string concatenation + operator (S15.17.1).

© 1996 Sun Microsystems, Inc. All rights reserved.