1. What is the correct syntax for declaring a 2D array of integers with 2 rows and 3 columns in Java?
Ans. int[][] array = new int[2][3];
2. How do you access a specific element in a two-dimensional array in Java?
Ans. array[index1][index2];
1. What is the correct syntax for declaring a 2D array of integers with 2 rows and 3 columns in Java?
Ans. int[][] array = new int[2][3];