What is the difference between Stream Reader and Stream Writer?
Answer Posted / 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 |
Post New Answer View All Answers
Is cout buffered?
What is a generic data type?
How big is a 64 bit float?
What is purpose of applet programming?
Can constructor be protected in java?
Write a program in java to establish a connection between client and server?
How many decimal digits is 64 bit?
How do listeners work?
How to run a JAR file through command prompt?
What are the four pillars of java?
Why do we use regex?
Is array a class in java?
What is difference between public static and void?
What causes memory leaks in java?
Can we have multiple classes in a single file?