Java nested generic type

Fundamentally, List<List<?>> and List<? extends List<?>> have distinct type arguments. It’s actually the case that one is a subtype of the other, but first let’s learn more about what they mean individually. Understanding semantic differences Generally speaking, the wildcard ? represents some “missing information”. It means “there was a type argument here once, but we don’t know … Read more