Why are these invalid in Java?
<pre><code>List&lt;Object&gt; myList = new ArrayList&lt;String&gt;(); //(hint: no)
Map&lt;Integer&gt; myMap = new HashMap&lt;int&gt;(); // (hint: also no)
</code></pre>

<p>Why are the statements wrong in the above declarations?</p>
