Switch-case statements are internally implemented with either tableswitch or lookupswitch bytecode instructions. Both instructions function by popping the stack for an integer value, and selecting a ...
1 . 在jdk 7 之前,switch 只能支持 byte、short、char、int 这几个基本数据类型和其对应的封装类型。switch后面的括号里面只能放int ...