Blogger

Delete comment from: Javarevisited

james said...

hashCode can be the same for 2 keys in a HashMap so HashMap uses equals.

In Oracle's Java implementation HashSet is only a wrapper around a HashMap.

Oct 1, 2011, 8:56:49 AM


Posted to Difference between HashMap and HashSet in Java

Google apps
Main menu