What is a Java collection framework?
Hello! I need an expert explanation on what is a Java collection framework? What it is about and what is its usage. Can you give me a background on its classes and interfaces?
Hello! I need an expert explanation on what is a Java collection framework? What it is about and what is its usage. Can you give me a background on its classes and interfaces?
Â
Â
Hi Nimrod,
Java collections framework is a set of classes and interfaces in order to provide a unified architecture for representing and manipulating collections :
Frameworks Aims to :Â
Have a high-efficiency. Many of the fundamental collections such as dynamic arrays, linked lists and trees are highly efficient.
Different types of collections should work with a high degree of Interoperability
Adoption and extension of a collections have to be easy.
Â
A Java collections frameworks contain:
a. Interfaces.
b. Classes.
c. Algorithms.
Â
Java framework defines several Interfaces and Classes.Â
Most important Framework  Collection Interfaces are:
1. The Collection Interface
2. The SortedSet
3. The Set
4. The Map
5. The Map.Entry
6. The Enumeration
8. The List Interface
Â
Most important Framework  Collection Interfaces are:
1. AbstractCollection
​2. AbstractList
3. AbstractSeuentialList
​4. LinkedList
5. ArrayList
6. AbstractSet
​7. HashSet
8. LinkedHashSet
9. TreeSet
Â
Classes and Interfaces of the Collections are located in Java.UtilÂ
Cheers,
Frazier
Â
Â
Â
This are a set of classes and interfaces
The framework consists of
1- Iinterface which are abstract data types that represent collections
2- Implementations i.e. classes which are re-usable data structures
3- Algorithms which are methods that perform several computations such as searching &sorting objects that implement collection interfaces
It gives a program access to data that has been pre-packaged and algorithm for manipulating the data