Remember
Register
All Activity
Tags
Users
Ask a Question
About Boostr
Advertise on boostr.in
Jobs
hashmap implementation in java how does the bucket index calculation work using -'java,hashmap'
hashmap implementation in java how does the bucket index calculation work Â using -'java,hashmap'
I am looking at the implementation of HashMap in Java and am stuck at one point.
How is the indexFor function calculated?
static int indexFor(int h, int length) {
Â Â Â return h & (length-1);
}
Thanks
Â Â Â Â
java
hashmap
asked
Sep 7, 2015
by
rajesh
Please
log in
or
register
to add a comment.
0
votes
10
views
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
...