title: Every time I use String, does it create a new String object?
body: <p>Let's say that I need to iteratively retrieve a value of the same key from a Java hashmap.</p>
  
  <pre><code>  for(int i=0; i&lt;INTEGER.MAX; i++)   
            map.get("KEY");
  </code></pre>
  
  <p>In this case, is the "KEY" string created every time I call map.get("KEY")? I was wondering if it's always better to have a String constant, or it doesn't matter. </p>