A

Admin • 828.03K Points
Coach

Q. Which is true about Map.of() method?

  • (A) Allows null keys
  • (B) Allows duplicate keys
  • (C) Immutable
  • (D) Thread-unsafe
  • Correct Answer - Option(C)
  • Views: 5
  • Filed under category Java
  • Hashtags: Java Map

Explanation by: Admin
Maps created with Map.of() are immutable and do not allow nulls or duplicates.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.