Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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.
 
PREVIOUS NEXT
Tagged: #arrays #collections
ADD COMMENT
Topic
Name
1+5 =