title: List<?> or List<Object>
body: <p>I have a method whose argument should be "a List of anything". The method will not modify the contents of the List. Is it more correct to define this method as</p>
  
  <pre><code>void foo(List&lt;?&gt; list) {
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>void foo(List&lt;Object&gt; list) {
  }
  </code></pre>
  
  <p>and what exactly is the difference?</p>