Ask Question

Char[][] array1 = new char[15][10];

What is the value of array1. length?

0

2

10

15

+2
Answers (1)
  1. 15 May, 08:57
    0
    Answer:The answer to this question is 15

    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Char[][] array1 = new char[15][10]; What is the value of array1. length? 0 2 10 15 ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers