Q34
When comparing java.io.BufferedWriter and java.io.FileWriter, which capability exist as a method in only one of two ?
A.
closing the stream
B.
flushing the stream
C.
writting to the stream
D.
writting a line separator to the stream
AnswerE.
None of these
Answer: Option D
Solution
Answer: Option D
Solution:
A newLine() method is provided in BufferedWriter which is not in FileWriter.