Vidyalelo
Java Programming · Q34

Input Output

Programming · Java Programming · question 34

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
Answer
E.
None of these

Answer: Option D

Solution

Answer: Option D
Solution:

A newLine() method is provided in BufferedWriter which is not in FileWriter.