What is the difference between <E extends Number> and <Number>?
Posted
by kunjaan
on Stack Overflow
See other posts from Stack Overflow
or by kunjaan
Published on 2010-05-05T02:28:43Z
Indexed on
2010/05/05
2:38 UTC
Read the original article
Hit count: 199
What is the difference between this method declaration:
public static <E extends Number> List<E> process(List<E> nums){
and
public static List<Number> process(List<Number> nums){
Where would you use the former?
© Stack Overflow or respective owner