Site Search:

OCPJP Simulation Test 76

<Back to OCPJP





Question: Given Queue<? super InputStream> queue = new LinkedBlockingQueue<InputStream>(), what are the following code compiles?

Choice:
A. queue.add(new InputStream());
B. queue.add(new FilePrintStream());
C. queue.add(new PrintInputStream());
D. queue.add(new BufferedInputStream());
E. queue.add(new ObjectInputStream());
F. queue.add(new OutputStream());
G. queue.add(new FilteredInputStream());
H. queue.add(new printStream());