public void wahey(List list) {} wahey(new LinkedList());
The call to the method will not type-check. I can\'t even cas
Consider if it was...
List nums = new ArrayList(); List objs = nums objs.add("Oh no!"); int x = nums.get(0); //throws ClassCastException
You would be able to add anything of the parent type to the list, which may not be what it was formerly declared as, which as the above example demonstrates, causes all sorts of problems. Thus, it is not allowed.