下列代码中哪行有错误?publicclassTest{publicstaticvoidmain(Stringargs[]){int x=8;byteb=127;b=x;x='a';long y=b;float z=(int)6.89;}}
A. b=x;
B. x='a';
C. long y=b;
D. float z=(int)6.89;
查看答案
下列代码中哪行有错误?publicclassTest{publicstaticvoidmain(Stringargs[]){char c=65535;byteb=127;int height=100;float f=3.14;}}
A. char c=65535;
B. byteb=127;
C. int height=100;
D. float f=3.14;
下列代码中哪行有错误?publicclassTest{publicstaticvoidmain(Stringargs[]){int m='a';unsigned char x='m';char ch=97;double t=0.1;}}
A. int m='a';
B. unsigned char x='m';
C. char ch=97;
D. double t=0.1;
以下哪种类型变量占用的内存最多?
A. int
B. float
C. double
D. char
对于int[][] a={{1,2},{1,2,3},{1,2,3,4}};下列哪个叙述是错误的?
A. a.length的值是3
B. a[2].length的值是4
C. a[0][1]的值是1
D. a[2][0]的值是1