Q. Which of these is a valid declaration of a two-dimensional array?
Solution:
A two-dimensional array is declared with two sets of square brackets, e.g., int[][] arr = new int[2][3].
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.