asked 150k views
3 votes
Char[][] array1 = new char[15][10];

What is the value of array1.length?
0
2
10
15

1 Answer

3 votes

Answer:The answer to this question is 15

Step-by-step explanation:

array1.length contains the number of rows.Since a 2-D array is a 1-D array of 1-D arrays.So the value of array1.length will be 15 and the value of array1[0].length will be 10 that is the number of columns.So we conclude that the answer is 15 that is the number of the rows.

answered
User Ajit Hogade
by
7.7k points