Skip to content
RED SAG Skills
hardStudy question · answer published in Java interview questions, so no pointshash-mapjava

int[] as a HashMap key

In Java, map.put(new int[]{1, 2}, "x") then map.get(new int[]{1, 2}) returns null. Why?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions