Java Programming
1,2,3,4 0,0,0,0 1,2 0,0
A copy of the array A copy of the first element. The reference of the array. The length of the array.
The program has a compile error because the syntax new double[]{1, 2, 3} is wrong and it should be replaced by {1, 2, 3}. The program has a compile error because the syntax new double[]{1, 2, 3} is wrong and it should be replaced by new double[3]{1, 2, 3}; The program has a compile error because the syntax new double[]{1, 2, 3} is wrong and it should be replaced by new double[]{1.0, 2.0, 3.0}; The program compiles and runs fine and the output
int [] myList = {}; int [] myList = (5, 8, 2); int myList [] [] = {4,9,7,0}; int myList [] = {4, 3, 7};
0 1 2 3
10,20,30,40,50 compile time error 10,10,10,10,10 run time error
15 30 45 60
Question 8:
3 and 5 2 and 4 2 and 5 none of the above
Number of score out of 8 = Score in percentage =