What is a Java collection framework?

Asked By 10 points N/A Posted on -
qa-featured

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?

SHARE
Best Answer by Gray Santangelo
Answered By 0 points N/A #133352

What is a Java collection framework?

qa-featured

 

 

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

 

 

Answered By 0 points N/A #133353

What is a Java collection framework?

qa-featured

 

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

Best Answer
Best Answer
Answered By 0 points N/A #133354

What is a Java collection framework?

qa-featured
Java collections framework set of classes and interfaces that implement commonly reusable collection data structures.
 
Collection framework goals:
 
     >>high-performance
     >>allow different types of collections to work  
     >>Extends an element (a key/value pair) in a maping a collection to be easy.
 
Collection framework interfaces :
 
        > Collection Interface
        > List Interface 
        > Set
        > The Sorted Set 
        >   Map
        > The Map.Entry
       > The Sorted Map 
       > The Enumeration 
 
 Classes
 
1    Abstract Collection 
 
 
2    Abstract List 
 
 
3    Abstract Sequential List 
 
 
4      Linked List 
 
 
5     Array List 
 
6     Abstract Set 
 
 
7      Hash Set
 
 
8      Linked Hash Set 
 
 
9     Tree Set 
 
 
10    Abstract Map 
 
11    Hash Map 
 
 
12    Tree Map 
 
13    Weak Hash Map 
 
 
14    Linked Hash Map 
 
15    Identity Hash Map 
 

Related Questions