The Binary String Concatenation Operator + – Basic Elements, Primitive Data Types, and Operators

2.9 The Binary String Concatenation Operator + The binary operator + is overloaded in the sense that the operation performed is determined by the type of the operands. When one of the operands is a String object, a string concatenation is performed rather than numeric addition. String concatenation results in a newly created String object … Read more

Type Conversions in an Assignment Context – Basic Elements, Primitive Data Types, and Operators

Type Conversions in an Assignment Context If the target and the source have the same type in an assignment, then obviously the source and the target are assignment compatible and the source value need not be converted. Otherwise, if a widening primitive conversion is permissible, then the widening conversion is applied implicitly; that is, the … Read more