

MCQOPTIONS
Saved Bookmarks
1. |
What is the difference between length() and size() of ArrayList? |
A. | length() and size() return the same value |
B. | length() is not defined in ArrayList |
C. | size() is not defined in ArrayList |
D. | length() returns the capacity of ArrayList and size() returns the actual number of elements stored in the list |
Answer» E. | |