Java Basic Tutorial
Java Advance Tutorial
The Java Collections Framework (JCF) is a set of interfaces and classes that provide efficient ways to store, manipulate, and process data in Java. It is part of the java.util package and provides implementations for lists, sets, maps, queues, and more.
Java Collections API is structured as follows:
🔹 List → Ordered collection (e.g., ArrayList, LinkedList)
🔹 Set → Unique elements only (e.g., HashSet, TreeSet)
🔹 Queue → FIFO (First-In-First-Out) (e.g., PriorityQueue, LinkedList)
🔹 Map → Key-Value pairs (e.g., HashMap, TreeMap, LinkedHashMap)
Interface |
Features |
Implementations |
---|---|---|
List |
Ordered, allows duplicates |
|
Set |
No duplicates |
|
Queue |
First In First Out processing |
|
Map |
Key-Value storage |
|