What is the difference between Stream Reader and Stream Writer?
Answers were Sorted based on User's Feedback
Answer / sharat
StreamReader is designed for character input in a particular
encoding, whereas the Stream class is designed for byte
input and output. Use StreamReader for reading lines of
information from a standard text file.
StreamWriter is designed for character output in a
particular Encoding, whereas classes derived from Stream are
designed for byte input and output.
Is This Answer Correct ? | 13 Yes | 1 No |
Answer / aravindhan
StreamReader is designed for character input in a
particular encoding, whereas the Stream class is designed
for byte input and output. Use StreamReader for reading
lines of information from a standard text file.
Similarly StreamWriter in for writing into the standard file
Is This Answer Correct ? | 8 Yes | 3 No |
Answer / meera
there are only Reader or Writer in io stream in java, to
read and write the data in the form of bytes.
Is This Answer Correct ? | 7 Yes | 12 No |
Answer / prasanna
No, Readers and writers are used to read and write the data
as a character wise.
where as Streams ares used to read and write the data as a
binary wise
Is This Answer Correct ? | 6 Yes | 12 No |
Can a final variable be manipulated in java?
Is null a keyword in java?
what is interface in java? Explain
What is args length in java?
Can java hashmap have duplicate keys?
what is d difference between deep cloning and shallow cloning in core java?
What defines function?
What is private static class in java?
State the main difference between c++ and java?
Difference between String & StringBuffer
16 Answers IBM, Infosys, Tech Mahindra, Wipro,
How many bytes is a string java?
What is a void in java?