Understanding Stream Hierarchies
For each of the following, state whether or not the wrapping is legal. If illegal, explain why.
a. Wrapping System.in with an InputStreamReader.
b. Wrapping System.out with an OutputStreamWriter.
c. Wrapping an InputStreamReader with a BufferedReader.
d. Wrapping System.in with a FileInputStream .
e. Wrapping a File with a FileInputStream .
f. Wrapping a File with a FileReader .
g. Wrapping a FileReader with a BufferedReader.
h. Wrapping System.out with a FileWriter.
i. Wrapping a FileWriter with a BufferedWriter.
j. Wrapping a FileOutputStream with a BufferedWriter.
k. Wrapping a File with a FileOutputStream.
l. Wrapping System.out with a PrintWriter.
m. Wrapping System.in with a PrintWriter.
n. Wrapping a File with a BufferedInputStream.
o. Wrapping a BufferedWriter with a PrintWriter.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.