Let's Build a Community of Programmers.
Subscribe Here👉 : https://goo.gl/HhwC5i
****************************************************************************************
Arrays vs Collection
Arrays can hold the only the same type of data in its collection i.e only homogeneous data types elements are allowed in case of arrays. ... Arrays can hold both object and primitive type data. On the other hand, collection can hold only object types but not the primitive type of data
Collection vs Generics
Since collections never do anything with the objects they store a collection really doesn't have to know anything about the object. So every type is allowed. With Generics this is a lot easier. We have collections containing only strings, only integers, only your own custom class type
****************************************************************************************