1. Java Programming examples on “Collection API”
The Collection API is a set of classes and interfaces that support operation on collections of objects. These classes and interfaces are more flexible, more powerful, and more regular than the vectors, arrays, and hashtables if effectively replaces. Classes are HashSet, HashMap, ArrayList, LinkedList, TreeSet and TreeMap. Interfaces – Collection, Set, List and Map. java.util.ArrayList class provides resizable-array and implements the List interface. java.util.HashSet class implements the Set interface, backed by a hash table. java.util.BitSet class implements a vector of bits that grows as needed. The following section provides various programs on Collection APIs.