Site Search:

OCPJP Simulation Test 81

<Back to OCPJP





Question: Given Queue<InputStreamReader> queue = new PriorityQueue< InputStreamReader>(), what are the following code compiles?

Choice:
A. queue.add(new Object());
B. queue.add(new InputStreamReader());
C. queue.add(new Reader());
D. queue.add(new FileInputStream());
E. queue.add(new ObjectInputStream());
F. queue.add(new BufferedReader());
G. queue.add(new FileReader());
H. None of the above