在使用int和short类型的常量自动装箱期间没有错误Byte,但是类型为常量的常量long有错误.为什么?
int
short
Byte
long
final int i = 3; Byte b = i; // no error final short s = 3; Byte b = s; // no error final long l = 3; Byte b = l; // error
java autoboxing
autoboxing ×1
java ×1