Aptean interview question

How hashmap works in java?