title: Is it worth to make a constant for an empty array in Java?
body: <p>Sometimes I need to return empty arrays to fulfill some classes contracts.</p>
  
  <p>Instead of always creating an empty array:</p>
  
  <pre><code>@Override public String[] getDescriptionTexts() {
      return new String[0]; // no texts
  }
  </code></pre>
  
  <p>I think it may be better to re-use an empty array from a constant:</p>
  
  <pre><code>public class Strings {
      public static final String[] EMPTY_ARRAY = new String[0];
  }
  
  @Override public String[] getDescriptionTexts() {
      return Strings.EMPTY_ARRAY; // no texts
  }
  </code></pre>
  
  <p>Is this kind of optimization worth it?</p>