A

Admin • 832.27K Points
Coach

Q. Which method is used to apply a function to all entries in a Map?

  • (A) forEach()
  • (B) map()
  • (C) applyAll()
  • (D) loop()
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category Java
  • Hashtags: Java Map

Explanation by: Admin

`forEach()` applies a BiConsumer to each entry in the Map.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.