Q-16: method declaration s/b:
public static <E extends Number> List<E> process(List<E> nums)
for the above method declaration:
No. since the output is ArrayList while it s/b List.
Yes
No, since the output is Number while it s/b something that extends Integer.
No, same reason as A
Yes, <Number extends Number> for both input and output.
Yes
[ September 19, 2006: Message edited by: M Krishnan ]