image.png
默认转换(小的转大的):
byte b=1;
int i=b;
float f=1;
double d=f;
显示转换(大的转小的):
b=(byte)i ;
f= (float)d;
默认转换(小的转大的):
byte b=1;
int i=b;
float f=1;
double d=f;
显示转换(大的转小的):
b=(byte)i ;
f= (float)d;