Which of the following is the correct way to declare a multidimensional array in Java?
(A) int arr;
(B) int arr[];
(D) int[] arr;
Answer: int arr[];
Array and Array Operations MCQs and Answers
18. An array of n numbers is given, where n is an even number. The maximum as well as the minimum of these n numbers needs to be determined. Which of the following is TRUE about the number of comparisons?