题目内容

以下叙述错误的是( )

A. 对于"int a[][]new int[6][4];"a.length的值是6
B. 对于"int a[][]=new int[2][9];"a.length,a[0].length,a[1].length的值都是9
C. 对于"int[] a=new int[3];"a[0],a[1],a[2]的值都是0
D. "float height=1e1F;"是正确的float变量的声明

查看答案
更多问题

对于下列Test.java代码,下列叙述正确的是( )public class Test{public static void main(String args[]){int arr[]=new int[10];System.out.println(arr[1]);}}

A. 产生编译错误
B. 输出null
C. 编译正确,发生运行异常
D. 输出0

阅读下列代码,下列( )选项正确1 public class Test{2public static void main(String args[]){3char c=65535;4byte b=127;5int height=100;6float f=3.14;7}8 }

A. 第3行错误
B. 第6行错误
C. 第4行错误
D. 第五行错误

阅读下列代码,下列( )选项正确1 public class Test{2public static void main(String args[]){3int x=8;4byte b=127;5b=x;6x='a';7long y=b;8float z=(int)6.89;9}10 }

A. 第6行错误
B. 第7行错误
C. 第5行错误
D. 第8行错误

Since tasting the excitement of _____ big city life, she never wants to live in _____ country again.

A. the, the
B. 不填,不填
C. the, 不填
D. 不填,the

答案查题题库