title: What is the best way of using Arrays.asList() to initialize a List
body: <p>I use this below code. Both are working fine in my application.</p>
  
  <p>Case 1.</p>
  
  <pre><code>List&lt;String&gt; coreModules =
      new ArrayList&lt;String&gt;(Arrays.asList(
          "TOOLBAR_TO_DO_LIST",
          "TOOLBAR_PROPERTY",
          "TOOLBAR_PEOPLE",
          "TOOLBAR_INSURANCE",
          "TOOLBAR_BATCH",
          "TOOLBAR_INFORMATION_REFERENCE",
          "TOOLBAR_LR_PROPERTY",
          "TOOLBAR_CASE_FOLDER",
          "TOOLBAR_INSPECTION_RESULT",
          "TOOLBAR_MY_OFFICE"));
  </code></pre>
  
  <p>Case 2.</p>
  
  <pre><code>List&lt;String&gt; coreModules =
      Arrays.asList(
          "TOOLBAR_TO_DO_LIST",
          "TOOLBAR_PROPERTY",
          "TOOLBAR_PEOPLE",
          "TOOLBAR_INSURANCE",
          "TOOLBAR_BATCH",
          "TOOLBAR_INFORMATION_REFERENCE",
          "TOOLBAR_LR_PROPERTY",
          "TOOLBAR_CASE_FOLDER",
          "TOOLBAR_INSPECTION_RESULT",
          "TOOLBAR_MY_OFFICE");
  </code></pre>
  
  <p>But I have some questions:</p>
  
  <ol>
  <li>Which one is better one performance-wise?</li>
  <li>In which case prefer Case 2?</li>
  </ol>