Capital One Interview Question: What happens if I put a Key-V... | Glassdoor

Interview Question

Java Software Engineer Interview Richmond, VA

What happens if I put a Key-Value pair into a HashMap, when

  the key is the same?
Answer

Interview Answer

1 Answer

1

That Key-Value pair overwrites original Key-Value pair.

Interview Candidate on Jul 17, 2017

Add Answers or Comments

To comment on this, Sign In or Sign Up.