Which of the following is a correct way to declare a multidimensional array in Java?

Q & AWhich of the following is a correct way to declare a multidimensional array in Java?
Admin Staff asked 4 years ago

Which of the following is a correct way to declare a multidimensional array in Java?
a) int[] arr;
b) int arr[[]];
c) int[][]arr;
d) int[[]] arr;

1 Answers
Admin Staff answered 4 years ago

c) int[][]arr;