Aptara Interview Question

why hashmap uses hashcode and equals method