Skip to main content
Tag

java collections framework

All blogs tagged with java collections framework

6
Articles
21,772
Total Views

Showing 6 of 6 articles

20
Jul
2023
Complete Guide to Hashmap in Java with Examples and Best Practices
3,538 views

HashMap is a component of the Java Collections Framework that implements the Map interface. It offers a key-value pair data structure in which elements are stored as a combination of keys and their corresponding values. HashMap does not support duplicate keys, but it does support mapping multiple values to the same key. It provides constant-time performance for simple operations like as element addition, removal, and retrieval.

19
Jul
2023
Linked Hashset In Java
3,331 views

The Java Collections Framework's LinkedHashSet is an implementation of the Set interface. It combines the advantages of LinkedList and HashSet. The order in which the elements were added to the set is the iteration order that the LinkedHashSet preserves. It offers constant-time performance for fundamental operations and disallows duplicate elements, just like HashSet.

Translate Page