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 |
Difference between ?System.out.println? and ?System.error.println??
What is a wrapper method?
What 4 doubled?
Why Static variable required in java?For ex,class A { static int a; int b; } Why static is required?
What is the difference between static method and instance method in Java?
0 Answers SwanSoft Technologies,
How to instantiate member inner class?
Tell me the programme for this @ 1 2 @ @ @ 1 2 3 4
5 Answers Accenture, iGate, IntoNET, Value Labs,
What are the new features in java 8? Explain
Which is faster set or list in java?
What are the differences between unchecked exception, checked exception, and errors?
How many bits is a string?
Difference between array and arraylist.
23 Answers Arise Solution, Banca Sella, iFocus, NIC, Sai Softech, Solartis, TCS, Verizon,