CHAPTER 23

COLLECTION FRAMEWORK

When we start studying a programming language, we work with simple primitive data types. Then we study objects and arrays. When we start programming for real-life problems, two things happen: the size of data we handle increases and the processing also gets involved.

At this stage the program development time increases. The execution time of the program also becomes significant.

Therefore, at this stage when we want to handle huge data, we must have appropriate tools with us. Java comes with the answer––a “collection framework”.

By collection, we mean an object which groups multiple elements in a single group. The elements in general are data objects. Examples are library books, student records, and so on. The ...

Get Programming with Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.