R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the initial capacity of a Java HashMap?

  • (A) 8
  • (B) 16
  • (C) 32
  • (D) 64
  • Correct Answer - Option(B)
  • Views: 5
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
By default, HashMap starts with a capacity of 16 and a load factor of 0.75.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.