How do you determine the number of elements in an array?
length()
size()
Click to view the answer
A.
Arrays use the length variable to determine the number of elements, making Option A correct.
For an ArrayList, Option D would have been the answer.