what is the difference between these 2 method signatures?
public <T> void fromArrayToList(List<?> a) { }
public <T> void fromArrayToList(List<T> a) { }
One is taking a List<T>
, and the other is taking a List<?>
. I am able to pass a list containing objects of any type to both these methods without the compiler complaining.