单选题
下列变量的定义中,错误的是______。
A、
int x=3;
B、
float f;d;
C、
String s="Hello!"
D、
boolean b=true;
【正确答案】
B
【答案解析】
[解析] 同时定义多个变量可以用逗号分隔,如float f,d;。
提交答案
关闭