title: What is the use of Map.ofEntries() instead of Map.of()
body: <p>From the documentation of <a href="https://docs.oracle.com/javase/9/docs/api/java/util/Map.html#immutable" rel="noreferrer">Map.java</a> -</p>
  
  <blockquote>
    <p>The <code>Map.of()</code> and <code>Map.ofEntries()</code> static factory methods provide a convenient way to create immutable maps.</p>
  </blockquote>
  
  <p>But when I already can <a href="https://stackoverflow.com/questions/41918934/what-is-the-point-of-overloaded-convenience-factory-methods-for-collections-in-j">use overloaded method</a> ...</p>
  
  <pre><code>Map.of("k1","v1","k2","v2","k3","v3"...);
  </code></pre>
  
  <p>... what is the use of Map.ofEntries which also </p>
  
  <blockquote>
    <p>returns an immutable map containing keys and values extracted from the given entries and the entries themselves are not stored in the map.</p>
  </blockquote>