DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library
Avatar

Christian Beutenmüller

Researcher/Software Developer at ExB

Leipzig, DE

Joined Sep 2013

Stats

Reputation: 168
Pageviews: 0
Articles: 0
Comments: 5
  • Comments

Nothing here yet! Would you like to post an article?

Comments

What's Wrong With Hashcode in java.lang.String?

Jun 09, 2017 · Artem Rukavytsia

True. I forgot about that.

What's Wrong With Hashcode in java.lang.String?

Jun 09, 2017 · Artem Rukavytsia

If your Boss reads this comment, he might as well. But for unexpected reasons (see the other comments).

What's Wrong With Hashcode in java.lang.String?

Jun 09, 2017 · Artem Rukavytsia

and yes Hashes collide. That is the basic concept of a hash function if hashes would not collide they would be utterly useless.

What's Wrong With Hashcode in java.lang.String?

Jun 09, 2017 · Artem Rukavytsia

While there might be implications of hash collisions for the effectiveness of the HashMap in Java, the minimal allowed hashCode implementation in Java is a simple return 0. HashMap is guaranteed to work even under these conditions correctly (but degenerates to a simple list performance-wise).

Editors:
Can someone please delete this article or edit/remove the security FUD at the end?
Thanks.

Top 10 Books for Advanced-level Java Developers

Sep 06, 2013 · James Sugrue

I would remove Effective Java (since this is one of the first books I recommend to beginners) and the Java Language Spec from the list and add for example:

"Java Concurrency in Practice" and "Programming in scala" .

The concurrency book since this is one of the hardest thing to get right and one of the best books on the topic and Programming in scala to expand the horizon and embrace the whole ecosystem.




User has been successfully modified

Failed to modify user

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook