Why would it be incorrect to say that a collection made with the of() method is immutable?

Why would it be incorrect to say that a collection made with the of() method is immutable?



Answer: Immutability means that the elements cannot be changed. Although elements cannot be added or removed, the elements themselves can be changed.


Learn More :

Data Structures

Learn More Multiple Choice Question :