Type Conversion Learning Record

short a=1;short b =2; For a+=b; += is an assignment operation, the type of the operation result is automatically upgraded and then automatically converted (the bytecode file helps us do the conversion step (short) (a+ b) ), so the result can be stored in short.

Guess you like

Origin blog.csdn.net/qq_42540393/article/details/115803095