Wipro interview question

How does the hashmap works in java?