1

This is the signature of max() in Collections class :

public static <T extends Object & Comparable<? super T>> T max(Collection<? extends T> coll)

what i want to know is , why does T has a explicit upper bound Object , when Object is already the super type for all types.

Ramanlfc
  • 8,283
  • 1
  • 18
  • 24

0 Answers0