Which of the following is the correct way to declare a multidimensional array in Java?
A. int[] arr;
B. int arr[[]];
C. int[][]arr;
D. int[[]] arr;
Answer:C
Which of the following is the correct way to declare a multidimensional array in Java?
A. int[] arr; B. int arr[[]]; C. int[][]arr; D. int[[]] arr;
Explanation: In Java, you can declare a multidimensional array using the int[][] arr; or int arr[][]; syntax.