Friday, September 18, 2009

[Java] How many buckets a hashmap contains?

 

Hi

How many buckets a hashmap contains?

What I know is:-

· The capacity is the number of buckets in the hash table
· Capacity is always in the power of 2.
· If the two keys in a hashmap have same hash code, then both values will be placed in the same bucket.

Please help.
How hashmap calculates about creation of buckets?
--
Thanks & Regards,
Manish Kumar Agarwal

http://javasociety.blogspot.com/

__._,_.___
Visit http://aiaiai.com or http://jgame.org for more groups to join.
Java Official Group is created for the following topics: Java 2 Enterprise Edition - J2EE, Java 2 Standard Edition - J2SE, Java 2 Micro Edition - J2ME, XML, XSL, XSD, XPATH, Web Services, Jini, JXTA for all type of Java Geeks.
Whoever posts spam / ads / job related message will be BANNED IMMEDIATELY
Recent Activity
Visit Your Group
Give Back

Yahoo! for Good

Get inspired

by a good cause.

Y! Toolbar

Get it Free!

easy 1-click access

to your groups.

Yahoo! Groups

Start a group

in 3 easy steps.

Connect with others.

.

__,_._,___

No comments:

Post a Comment