This discussion is archived
1 Reply Latest reply: May 1, 2013 11:54 AM by jtahlborn RSS

How HashMap get() works in O(1)?

783105 Newbie
Currently Being Moderated
Hi All,

I know how HashMap works in but I would like to know, how java create bucket using hashcode() method and how it retrieves data in O(1).

Thanks,
Shivlakhan Patel

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points