A

Admin • 833.24K Points
Coach

Q. Which of the following is a true statement about HashMap?

  • (A) It preserves key order
  • (B) It allows duplicate keys
  • (C) It is thread-safe
  • (D) It allows one null key
  • Correct Answer - Option(D)
  • Views: 30
  • Filed under category Java
  • Hashtags: Java Map

Explanation by: Admin

HashMap allows one null key and multiple null values.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.