下列哪些数据类型能用于switch语句中()
A: char
B: long
C: byte
D: double
A: char
B: long
C: byte
D: double
举一反三
- switch语句不能用于下列()数据类型。 A: double B: byte C: short D: char
- 对于“switch(a)”表达式中的变量a,它可以被声明为哪些合法数据类型? A: boolean, byte, char, short, int, long B: boolean, byte, char, short, int C: byte, char, short, int D: boolean, byte, char, short, int, long, float, double
- switch可以比较哪些数据类型? A: float B: byte C: long D: int E: char
- 在jdk1.7及以上,switch语句判断条件不可以接收的数据类型有哪些?() A: double B: byte C: char D: String
- 下列数据类型中,哪个不能用于switch语句? A: String B: double C: int D: char
