HashMap questions are common in job interviews. Here's some in-depth explanation of how HashMaps work internally in Java.
https://dzone.com/articles/how-hashmap-works-in-java
* difference between HashMap and Hashtable
* implementation of the put() method