Java generic method boundaries

Viewed 1766

What is the difference in following 2 lines?

public static <T extends Comparable<? super T>> int methodX(List<T> data)
public static <T> int methodX(List<? extends Comparable<? super T>> data)
3 Answers
Related