The __________ method sorts the array scores of the double[] type.
A. java.util.Arrays(scores)
B. java.util.Arrays.sortArray(scores)
C. java.util.Arrays.sort(scores)
D. java.util.Arrays.sorts(scores)
查看答案
Assume double[] scores = {1, 2, 3, 4, 5}, what value does java.util.Arrays.binarySearch(scores, 3.5) return?
A. -4
B. -3
C. 4
D. 3
What is the correct term for numbers[99]?
A. array
B. index variable
C. index
D. indexed variable
Which of the following is correct to create an array?
A. int[] m = {1, 2, };
B. int[] m = {{1, 2}, {3, 4}};
C. int[] m = {{1, 2}};
D. int[] m = {1, 2, 3};
Suppose a method p has the following heading: public static int[] p()What return statement may be used in p()?
A. return 1;
B. return int[]{1, 2, 3};
C. return new int[]{1, 2, 3};
D. return {1, 2, 3};