posted 18 years ago
Hello,
Would somebody explain why option C is not correct? Thanks a lot.
Given a method declared as:
public static <E extends Number> List<? super E> process(List<E> nums)
A programmer wants to use this method like this:
// INSERT DECLARATIONS HERE
output = process(input);
Which pairs of declarations could be placed at // INSERT DECLARATIONS HERE to allow
the code to compile? (Choose all that apply.)
C. ArrayList<Integer> input = null;
List<Number> output = null;