Mphasis Interview Question

how to implement hashmap and hashcode vs equals