Aptean Interview Question

How hashmap works in java?