Tuesday, November 29, 2011

What method should the key class of hashmap override

The methods to over ride are equals() and hashCode(). :What if you don?t override the hashcode() method while adding objects as keys in to the hashtable:
Category:Java Interview Questions

No comments:

Post a Comment