Site Search:

OCPJP Simulation Test 71

<Back to OCPJP





Question: Given Deque<? super FilterOutputStream> deque = new ArrayDeque<OutputStream>(), what are the following code compiles?

Choice:
A. deque.add(new Object());
B. deque.add(new OutputStream());
C. deque.add(new FilterOutputStream());
D. deque.add(new BufferOutputStream());
E. deque.add(new ObjectInputStream());
F. deque.add(new PrintStream());
G. deque.add(new ObjectOutputStream());
H. deque.add(new printerWriter());