I was reading about generics and I did not understand the need for unbound wildcards and how it differs from raw type. I read this question but still did not get it clearly.
Personally, I found this additional link from the Java tutorial on wildcards helpful.
One of the main differences I see between List>
and List
is that the former can only ever be useful for reading from it's elements (unless you really want to add null
), the latter allows (unchecked) adding of arbitrarily typed objects to it with possibly unexpected side-effects.