阅读背景:

为什么最终Byte作为switch语句中的一个案例不能编译?

来源:互联网 
byte a = 125;
final byte b = 2;
final Byte c = 3;
switch (a) {
case b: // works fine
    break;
case c: // Constant Expression required
    break;
}
byte a = 125;
final byte b = 2;
final Byte c = 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: