Which of the following operations is NOT supported by `Map.of()`?

  1. Iteration
  2. Reading values
  3. Adding new entries
  4. Accessing keys
Correct answer Adding new entries

Explanation

`Map.of()` creates an immutable map that does not allow adding or removing entries.

Update: Admin added a tag on this question

Topics

By Admin · · 32 views