Prev Next

Java / Strings

Why String is often used as key in HashMap?

Immutability nature of String objects prevent hash collision is HashMap.

More Related questions...

Show more question and Answers...


Comments & Discussions