I was just going through a book on java generics and I found a list of function declared
and they have compared which parameters they accept to work
. Please elaborate the different cases
for the functions to work,
Here are the list of function declarations,
public static <T> void copy(List<T> dst, List<T> src)
public static <T> void copy(List<T> dst, List<? extends T> src)
public static <T> void copy(List<? super T> dst, List<T> src)
public static <T> void copy(List<? super T> dst, List<? extends T> src)