---------- Run ---------- Hello World! Normal Termination Output completed (0 sec consumed).
posted 8 years ago
To the Batmobile!
Oh no, that should be Java Language Specification, or anywhere where you can read that the compound operators can return their original type rather than going to int.
It is quite complicated; they can create an int and then return it to their original type, so your example will compile and run happily, but you can get some unexpected results if you use types "narrower" than int (short, byte, char). It is described lot better in the Java Language Specification page I showed you. "Complete abruptly" means to suffer an exception at runtime.