What is Collection
Any group of individual objects which are represented as a single unit is known as a collection.
A collection in JAVA is an interface. While Collections is a class
The collection framework consists of
List
- ArrayList
- LinkedList
- Vector
- Stack
Queue
- PriorityQueue
- LinkedList
- Deque (Double-Ended Que)
- ArrayDeque
Set
- HashSet
- LinkedHashSet
- SortedSet
- TreeSet
Map (This is not part of the collection framework)
- HashMap
- LinkedHashMap
- SortedMap
- TreeMap
- Hashtable
Comments
Post a Comment