Question: I need help with this homework problem. I hope you can give me a short explanation on why it the correct answer. I do appreciate

I need help with this homework problem. I hope you can give me a short explanation on why it the correct answer. I do appreciate it and really do help me learn. What is the difference between the length field for an array and the size() method for an ArrayList? The length field returns the capacity of the array, while the size() method returns the number of elements stored in the ArrayList. size() returns null if the ArrayList is empty, while length returns O if the array is empty. There is no difference - they both tell you how many elements are stored. There is no difference - they both return the holding capacity
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
