Register / Login
Win a copy of
The Little Book of Impediments (e-book only)
this week in the
Agile and Other Processes
Is this Generics model answer correct
posted 10 years ago
Studying for SCJP5 using Sierra/Bates book.
In generics end of ch question 16 has the answer as below. However I am not sure its correct.
public static <E extends Number> List<? super E> process(List <E>
//if you want to invoke the method like this
output=process(input)//will this invocation work with the above 2 lines?
//I thought the process method requires a list as input.
wildcards in generics
Doubt in Generics