Stephan van Hulst wrote:The result of a+b is an int. The += operator however performs an implicit cast to whatever is the data type of the left operand.