Answers for "when do we prefer collections over arrays in java"

0

arrays vs collections

There are so many differences
1.Arrays are fixed in size but Collections are dynamic size.
2.Arrays can hold both primitives and wrapper
objects but collections can hold only objects.
3.We have iterators for collection but we
do not have them for arrays.
Posted by: Guest on January-13-2021

Code answers related to "when do we prefer collections over arrays in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language