Site Search:

OCPJP Simulation Test 72

<Back to OCPJP





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

Choice:
A. queue.add(new Writer());
B. queue.add(new BufferWriter());
C. queue.add(new FileReaderWriter());
D. queue.add(new BufferedInputStreamWriter());
E. queue.add(new FileWriter());
F. queue.add(new PrintStream());
G. queue.add(new OutputStreamWriter());
H. queue.add(new printWriter());