What is the function of the copyOf(Collection coll) method from the Set interface?

What is the function of the copyOf(Collection<E> coll) method from the Set interface?



Answer: Creates an immutable copy of the set containing all the elements of the original set.


Learn More :

Data Structures

Learn More Multiple Choice Question :