title: Initialize empty arraylists in Spring configuration?
body: <p>I am learning Spring and I read the Spring in Action book. I wonder if you are supposed to inject an empty arraylist (if that is possible) or create it like the example below?</p>
  
  <pre><code>public class StackOverflow {
  
      private List&lt;Car&gt; cars;
  
      public StackOverflow() {
          cars = new ArrayList&lt;Car&gt;();
      }
  }
  </code></pre>