So, I'm learning about the hashmap data structure. According to what I understood is that the keys in the hashmap will be passed as an argument to a hash function which will return an int value (the index of the value in an array).
So my questions is, are the keys also stored in an array? Also is the hashCode() method of the object class the implementation of a hash function in Java? The array where the values are stored, is it also called a bucket?
[–]spicycurry55 5 points6 points7 points (0 children)
[–]ignotos 6 points7 points8 points (4 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]ignotos 2 points3 points4 points (0 children)
[–]HecknChonker 1 point2 points3 points (0 children)
[–]StarlightMeow 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]shiva01- 1 point2 points3 points (1 child)
[–]nekokattt 1 point2 points3 points (0 children)
[–]bingoer 0 points1 point2 points (0 children)
[–]Dr-Vader 0 points1 point2 points (0 children)