Please send your Questions & Answers or Feedback to "mohan@javabook.org"
When do use the hashCode() ?
When we pass the user defined class as a key to the HashMap, we need to override the hashCode().This method is already overridden by the String class and the Integer class.