Daily Archives: September 9, 2014

HashMap Internal Implementation Analysis in Java

Most of you will agree that HashMap is a most favorite topic for discussion in interviews nowadays. Now, I am continuing this discussion with you all. I am assuming that if you are interested in the internal working of HashMap, you already know the basics of HashMap, so I'm skipping that part. But if you are new to the concept, follow official java docs. Single Statement Answer If anybody asks me to describe "How HashMap works?", I simply answer: "On the principle of Hashing". As simple as it is. Now before answering it, one must be very sure to know at least the basics of Hashing. Right? What is Hashing Hashing in its simplest form is a way to assign a…

Continue Reading
Contact Us
  • Tencent Binhai Building, Shenzhen, China
  • root [at] haozhexie [dot] com