+ 4

Arrays vs Collections

what really is the difference between arrays and collections they basically seem to do the same thing why do we need two of them

27th Dec 2019, 4:56 PM
bafoco
bafoco - avatar
5 Réponses
+ 6
Collections is a separate framework which is designed to handle data structures easily so that you can focus more on the logic building part of your program. Collections is an interface which is broken down into other interfaces- 1) Set 2) List 3) Queue 4) Deque Collections provide various functions which make your data manipulation easy when compared to arrays.
27th Dec 2019, 5:11 PM
Avinesh
Avinesh - avatar
0
Array is fixed unlike collections.
27th Dec 2019, 8:54 PM
Moustapha Dieye
Moustapha Dieye  - avatar