Multiple choice

If the last index of array list is 12, what is the length of the array?

  1. 13

  2. 12

  3. 11

  4. Unknown

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Java, array indexing is zero-based, meaning the first element is at index 0. If the last index of an array is 12, the total number of elements (the length) is 12 + 1 = 13.