我看到了Java的+=、-=、*=、/=复合赋值运算符(好问题 :)),但是其中有一部分我不太理解。借用那个问题: int i = 5; long l = 8; Then i = i + l; will not compile but i += l; will compile fine....
Question : char x = 'a'; x += 3; // ok x = x + 3; // compile time error
是: x -= y; 等同于: x = x - y;