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
What is the difference between length() and size() of ArrayList?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What is the difference between length() and size() of ArrayList?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!