Which two method you need to implement for key Object in HashMap ?

Correct Answer: In order to use any object as Key in HashMap, it must implements equals and hashcode method in Java

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion