Hi, I am posting this same question again because I still didn't get my doubt cleared. In this question, if B,E and F are correct then why is C not correct? Is it because both the input and output types should match in addition to the return type being an integer or a number? I'm just thinking, if you feed in an ArrayList of integers according to answer C and get a List of numbers, it doesnt make sense since a number could be a Float too? Is that why C is incorrect? Please help me out. Thanks
This is a K & B book example, from chap:7, page620.
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.)