Site Search:

OCPJP Simulation Test 66

<Back to OCPJP





Question: Given Deque<? super Reader> queue = new LinkedList<Reader>(), what are the following code compiles?

Choice:
A. queue.add(new Reader());
B. queue.add(new Writer());
C. queue.add(new FileReader());
D. queue.add(new BufferedInputStream());
E. queue.add(new BufferedReader());
F. queue.add(new PrintStream());
G. queue.add(new InputStreamReader());
H. queue.add(new printWriter());