| Author |
help
|
zhu yuanming
Greenhorn
Joined: Mar 12, 2008
Posts: 4
|
|
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 DECLARATION HERE output = process(input); which pairs of declaration could be placed at//INSERT DECLARATIONS HERE to allow the code to compile?(Choose all that apply.) A. ArrayList<Integer> input = null; ArrayList<Integer> output = null; B. ArrayList<Integer> input = null; List<Integer> input = null; c. ArrayList<Integer> input = null; List<Number> output = null; D. List<Number> input = null; ArrayList<Integer> output = null; E. List<Number> input = null; List<Number> output = null; F. List<Integer> input = null; List<Integer> output = null; G. None of the above. Which answer is true and Why? the More particular,the better. Thanks very much!
|
 |
Nadeem Khan
Ranch Hand
Joined: Nov 27, 2007
Posts: 108
|
|
Hey Zhu, Please check K&B Errata topic and you will come to know that this question hasnt been framed properly!
|
<i>If there were no Exceptions (not Errors!), Life would have kinda sucked!!</i>
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12911
|
|
Welcome to JavaRanch. Please use a meaningful subject line instead of "help" when you post a question.
|
Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
|
 |
zhu yuanming
Greenhorn
Joined: Mar 12, 2008
Posts: 4
|
|
ok,thank you for help.but where K&B Errata I can find? [ March 13, 2008: Message edited by: zhu yuanming ]
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12911
|
|
|
SCJP Sun Certified Programmer for Java 5 Study Guide - Errata 4/16/06
|
 |
zhu yuanming
Greenhorn
Joined: Mar 12, 2008
Posts: 4
|
|
|
thank you very much.
|
 |
 |
|
|
subject: help
|
|
|