title: passing List<String> to method expecting List<Object>
body: <p>In <code>Page 112 of CHAPTER 5 GENERICS in the book - Effective Java</code> , these sentences appears</p>
  
  <blockquote>
    <p>Just what is the difference between the raw type <code>List</code> and the
    parameterized type <code>List&lt;Object&gt;</code> ...While you can pass a <code>List&lt;String&gt;</code>
    to a parameter of type List, you can’t pass it to a parameter of type
    <code>List&lt;Object&gt;</code></p>
  </blockquote>
  
  <p>I tried this</p>
  
  <pre><code>public static void getMeListOfObjs(List&lt;Object&gt; al){
      System.out.println(al.get(0));
  }
  public static void main(String[] args) {
  
      List&lt;Object&gt; al = new ArrayList&lt;Object&gt;();
  
      String mys1 = "jon";
  
      al.add(mys1);
  
      getMeListOfObjs(al);
  
  
  }
  </code></pre>
  
  <p>It runs without any error... Was that an error in book content? I am quoting from the second edition</p>