Question: 8 . Two - dimensional array Consider the following two - dimensional array declaration. int [ ] [ ] matrix = new int [ 4

8. Two-dimensional array
Consider the following two-dimensional array declaration.
int[][] matrix = new int [4][5] ;
Which of the following statements will assign the correct size to colSize?
Pick ONE option
int colSize = matrix[01.length;
int colSize = matrix[1].length;
int colSize = matrix[2].length;
int colSize = matrix[3].length;
all of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!