Mutable maps supports modification operations such as add, remove, and clear on it . Unmodifiable Maps are “read-only” wrappers over other maps. They do not support add, remove, and clear operations, but we can modify their underlying map.
Is map mutable in Java?
Mutable maps supports modification operations such as add, remove, and clear on it . Unmodifiable Maps are “read-only” wrappers over other maps. They do not support add, remove, and clear operations, but we can modify their underlying map.