A

Admin • 828.03K Points
Coach

Q. Which Java version introduced `Map.of()` and `Map.ofEntries()` methods?

  • (A) Java 7
  • (B) Java 8
  • (C) Java 9
  • (D) Java 10
  • Correct Answer - Option(C)
  • Views: 9
  • Filed under category Java
  • Hashtags: Java Map

Explanation by: Admin
`Map.of()` and `Map.ofEntries()` were introduced in Java 9.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.