Java Collections Framework
Collection: Group of objects Single entity representing multiple objects Collection Framework: To represent a group of objects into a single entity we need certain number of classes and interfaces . And Collection Framework provides those classes and interfaces. Arrays Limitations of Arrays: 1. Arrays lets us store only homogenous or same kind of data or data of same type Workaround : Create Object Array or Array of object type: This can allow us to store homogenous as well as heterogeneous data 2. Array has limited size. 3. Has fixed size. Cannot increase or decrease the size at runtime. Means i t is not growable in nature. Means before we create an array we must know how many elements we are going to store in the array. Not possible to add new or remove existing values during runtime. To do that we will need a programming logic. Cannot add more elements at runtime to the array and memory gets wasted if we do not use all the memory initially allocate...

Comments
Post a Comment