What is the difference between Stream Reader and Stream Writer?
Answer Posted / 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 |
Post New Answer View All Answers
What does compareto () do in java?
What is the difference between an argument and a parameter?
What is array in java?
what is ststic with example
Define how does a try statement determine which catch clause should be used to handle an exception?
Which collection is ordered in java?
What is map java?
What is "this" keyword in java? Explain
Does garbage collection occur in permanent generation space in jvm?
What is the use of list in java?
What access modifiers can be used for variables?
Which number is denoted by leading zero in java?
Why vector is used in java?
How do you sort in descending order in java using collections sort?
How to change the priority of thread or how to set priority of thread?