What is the difference between Stream Reader and Stream Writer?

Answers were Sorted based on User's Feedback



What is the difference between Stream Reader and Stream Writer?..

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

What is the difference between Stream Reader and Stream Writer?..

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

What is the difference between Stream Reader and Stream Writer?..

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

What is the difference between Stream Reader and Stream Writer?..

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

Post New Answer

More Core Java Interview Questions

how to create constants in java?

0 Answers  


What is the major drawback of internal iteration over external iteration?

0 Answers  


what is wrapper class and its uses?

2 Answers  


How are commas used in the initialization and iteration parts of a for statement?

2 Answers  


What is entry set in java?

0 Answers  






Advantages of Inheritance in java.

11 Answers   CybAge, HCL,


Is sizeof a preprocessor?

0 Answers  


what is Assertion?

4 Answers   Wipro,


What is the difference between replace and replace all?

0 Answers  


Can we call virtual funciton in a constructor ?

0 Answers   XX,


What is an empty list in java?

0 Answers  


Why does java not support operator overloading?

0 Answers  


Categories