Java基础面试题 switch 语句能否作用在 byte 上,能否作用在 long 上,能否作用在 String 上? 在 switch(expr 1) 中,expr1 只能是一个整数表达式或者枚举常量。而整数表...