Join
Blogs
Questions
Videos
Tags
Members
Search
 
 
Create your own blog, earn points and get popular!

HashMap Constructor

HahaMap Constructors

HashMap ()
Constructs empty HashMap with a default initial capacity 11 and load factor 0.75.

HashMap (int initialCapacity)
Constructs empty HashMap with the specified initial capacity and default load factor 0.75.

HashMap (int initialCapacity, float loadFactor)
Constructs empty HashMap with the specified initial capacity and the specified load factor.

HashMap (Map map)
Constructs a new HashMap with the mappings same as the passed Map.


<< HashMap Tutorial
    HashMap Methods >>
No votes yet
Share this

Post new comment