Question: I need help with this homework problem. What's the difference, if any, between the length field of an aray and the size() method of an

I need help with this homework problem. What's the difference, if any, between the length field of an aray and the size() method of an ArrayList? None - they both return the capacity of each structure None - they both return the number of elements stored in each structure If the structure is empty then size() returns null and length returns o O Length returns the capacity of the array but size() returns the number of elements stored in the ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
