Q. Which of the following is a valid way to declare a multi-dimensional array in Java?
β
Correct Answer: (B)
int[][] arr = new int[3][3];
Explanation: To declare a multi-dimensional array in Java, we use the syntax int[][] arr = new int[3][3], where 3 is the size of both the first and second dimension of the array.