Explain Collection Framework Hierarchy in Java 2022 Update.
1. List
It handles sequential list of objects. ArrayList, Vector and LinkedList classes implement this interface.
2. Queue
It handles the special group of objects in which elements are removed only from the head.
Linked List and Priority Queue classes implement this interface.
3. Set
It handles the group of objects which must contain only unique elements.
This interface is implemented by HashSet and LinkedHashSet classes and extended by
SortedSet interface which in turn, is implemented by TreeSet.
4. Map
This is the one interface in Collection Framework which is not inherited from Collection interface.
It handles the group of objects as Key/Value pairs. It is implemented by
HashMap and HashTable classes and extended by SortedMap interface which in turn is implemented by TreeMap.
Three of above interfaces (List, Queue and Set) inherit from Collection interface.
Although, Map is included in collection framework it does not inherit from Collection interface.
インド人ITエンジニアを活用して、ウェブとアプリ含めシステム開発サービスを提供しています。
ReplyDeleteアプリ 開発 オフショア
APTRON's Java Course in Gurgaon caters to all levels. With hands-on practical sessions, interactive learning modules, and real-world projects, students gain a deep understanding of Java programming concepts and its application in various industries. Moreover, APTRON's state-of-the-art facilities and supportive learning environment ensure that every student receives personalized attention and guidance throughout their learning journey.
ReplyDelete