java collections vs arrays code example
Example: 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.