Technical Interview Preparation

Get hired by top tech companies with our comprehensive interview preparation.

Get Started

Category: Java

Java

Unmodifiable Set in Java

Unmodifiable sets are “read-only” wrappers over other collections. They do not support any modification operations such as add, remove, and clear, but their underlying collection can be changed.

Java

Convert an Array to a Set in Java

This post will discuss how to convert an array to a set using plain Java, Guava, and Apache Commons Collections. Please note that no duplicate elements are allowed in the array, or duplicates will be discarded in the set.

Do NOT follow this link or you will be banned from the site!