当前位置: 技术问答>java相关
数组问题一个???,
来源: 互联网 发布时间:2015-03-14
本文导语: 1.byte [] arry1,arry2[]; 2.byte array3[][]; 3.byte [][] array4; if each array has been initialized,which statement will cause a compiler error? a. array2=array1; b. array2=array3; c. array2=array4; d. both a and b e. both a and c f. both b and...
1.byte [] arry1,arry2[];
2.byte array3[][];
3.byte [][] array4;
if each array has been initialized,which statement will cause a compiler error?
a. array2=array1;
b. array2=array3;
c. array2=array4;
d. both a and b
e. both a and c
f. both b and c
我认为这道题如果是单选,则答案是f.多选则为bcf,不知道对不?
请大家帮忙看看???
2.byte array3[][];
3.byte [][] array4;
if each array has been initialized,which statement will cause a compiler error?
a. array2=array1;
b. array2=array3;
c. array2=array4;
d. both a and b
e. both a and c
f. both b and c
我认为这道题如果是单选,则答案是f.多选则为bcf,不知道对不?
请大家帮忙看看???
|
呵呵,选a,b,c,因为array1&array2未定义
开个玩笑
开个玩笑
|
a. array2=array1;
|
选a 方法同楼上