非常急! JAVA考題 請高手解答 40 點
請會JAVA的程式師 多多回答幫忙 並且可以解釋為什麼是這個答案 謝謝!!!26.Which two will declare an array and initialize it with five numbers? (Choose two.)A. Array a = new Array(5);B. int [] a = {23
22
21
20
19};C. int [] array;D. int array [] = new int [5];E. int a [] = new int(5);F. int [5] array;27.Given the following
1. public class Test {2. public static void main(String [] args) {3. byte [][] big = new byte [7][7];4. byte [][] b = new byte [2][1];5. byte b3 = 5;6. byte b2 [][][][] = new byte [2][3][1][2];7.8. }9. }which of the following lines of code could be inserted at line 7
and still allow the code tocompile? (Choose four that would work.)A. b2[0][1] = b;B. b[0][0] = b3;C. b2[1][1][0] = b[0][0];D. b2[1][2][0] = b;E. b2[0][1][0][0] = b[0][0];F. b2[0][1] = big;28. Given the following
1. public class Test {2. public static void main(String [] args) {3. int [] [] [] x = new int [3] [] [];4. int i
j;5. x[0] = new int[4][];6. x[1] = new int[2][];7. x[2] = new int[5][];8. for (i=0; i
留言列表