Skip to main content
Tag

java collections

All blogs tagged with java collections

12
Articles
44,105
Total Views

Showing 12 of 12 articles

21
Aug
2023
java.lang.IndexOutOfBoundsException
4,368 views

The java.lang.IndexOutOfBoundsException is an exception class in Java that is thrown when an index used to access an array, list, or other collection is either negative or greater than or equal to the size of the collection. This usually indicates an attempt to access an element at an invalid index that does not exist in the collection.

20
Jul
2023
Complete Guide to Hashmap in Java with Examples and Best Practices
3,578 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,343 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