1 vote

when does the Map return null?

When using custom classes to define keys, you need both an equals() method and a hashCode() method in order to ensure that the key can be found. The latter identifies the correct "bucket" in ...
sfdcfox's user avatar
  • 490k

Only top scored, non community-wiki answers of a minimum length are eligible