Question: core java
what is the Difference between collections and reference type arrays?explain
1) Arrays are fixed in size collections are not fixed in size.
2) There is no underlying data structure for arrays while for every collection class underlying data structure is defined.
3) Arrays doesn't prevent duplicate objects while Collections does.
4) In an array the values are side by side, while collection scatter the values to positions where they are most convenient.