Hi,
I am having problem understanding the below:
1) List a = new ArrayList();
2) List <?> b = a;
3) List <? extends Object> c = a; // with warning of course
Why there is an unchecked warning at clause 3) while no unchecked warning at 2) ?
I don't see the difference between <?> (Unbounded wildcard) and <? extends Objects> (Since Object is the highest upper bound in Java)
Can anyone help me on this?
Thanks.