aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "help" Watch "help" New topic
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
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14107
    
  16

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
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14107
    
  16

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help