Hello friends,
Welcome back 🙂
In this article, I'm going to share about collections framework or simply collections in Java. I'll add collection's notes and articles in parts because its a large but important utility in Java development, so lets get start.
So that's all for today, I'll add its parts continuously. Also I'll add separate label as collections framework is a separate part to learn in Java.
Thanks.
Welcome back 🙂
In this article, I'm going to share about collections framework or simply collections in Java. I'll add collection's notes and articles in parts because its a large but important utility in Java development, so lets get start.
The collections - Basics
In this article, we'll just review the basics about collections. As the name suggest, collection framework is used to create collection of objects and that collection represents itself as a separate object. In the collection framework, Java provides several interfaces, classes i.e. implementation of interfaces and various common behaviors between those classes and interfaces.
Prior to collections, in Java, Vectors, Arrays and Hashtables were used for grouping Java objects. Here in this article, I'm just giving list of interfaces and classes of the collections framework:
Java provides two types of collections. One is list typed in which objects stored in a sequence manner or we can say something like simple array which doesn't having fixed size. Its base or root interface is Collection.
Another type is key-value pair typed collection in which every object in that collection must have a key or simply a mapping between an object which is known as key with another object which is known as value, the . I'll elaborate differences between those two types later, here I'll just add the list of interfaces and classes used in collections framework.
Interfaces:
- Collection
- List
- Set
- SortedSet
- NavigableSet
- Queue
- Dequeue
- Map
- SortedMap
- NavigableMap
Classes:
- ArrayList
- LinkedList
- Stack
- Vector
- HashSet
- LinkedHashSet
- TreeSet
- PriorityQueue
- ArrayDequeue
- HashMap
- LinkedHashMap
- HashTable
- TreeMap
So that's all for today, I'll add its parts continuously. Also I'll add separate label as collections framework is a separate part to learn in Java.
Thanks.
Comments
Post a Comment
Want to share something? Add here...