Which is correct about the number of items stored in full arrays and an ArrayLis
ID: 3720621 • Letter: W
Question
Which is correct about the number of items stored in full arrays and an ArrayLists?
1.ArrayList uses the size() method and arrays use the length property
2.ArrayList uses the size() method and arrays use the length() method
3.ArrayList uses the size property and arrays use the length propetry
4.Both use the size() method.
1.ArrayList uses the size() method and arrays use the length property
2.ArrayList uses the size() method and arrays use the length() method
3.ArrayList uses the size property and arrays use the length propetry
4.Both use the size() method.
Explanation / Answer
Answer) 1.ArrayList uses the size() method and arrays use the length property
Explanation:- ArrayList uses the method size() to get the size whereas arrays use the length property to get the size
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.