Get Started
951

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

  • Show Answer
  • Workspace

Answer :
Explanation :

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

The Most Comprehensive Exam Preparation Platform

Get the Examsbook Prep App Today