venu chakravorty wrote:Can't we use the 'super' keyword when defining a generic class or method?
This is from Angelika Langer's generics site:
"Type parameters can have several bounds, like in class Box<T extends Number> {...} . But a type parameter can have no lower bound, that is, a construct such as class Box<T super Number> {...} is not permitted. Why not? The answer is: it is pointless because it would not buy you anything, were it allowed. Let us see why it is pointless by exploring what a upper bound on a type parameter means. "