Sonar Interview Question

how hashmap works in java?