ThinkInJava study notes --3

 

--------- "clean-up and initialization"

 

Variable parameters, automatic packaging device, automatic type conversions:

char->int、byte->short、short->int、 int->long、int->float、float->double

For char seems to have a similar automatic packaging concepts and automatically unpacking, single quotes can be directly converted to the corresponding letters automatically assic code satisfies the conditions

Integer (16-bit) can be automatically converted to char value;

 

 

Published 35 original articles · won praise 11 · views 50000 +

Guess you like

Origin blog.csdn.net/bokerr/article/details/102237732