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 |
when we write class.forName("any one class"); what happens actually?what it will return?explain stepwise?
How do you find the independent variable?
What are inner and anonymous class?
What is an abstract class and what is it’s purpose?
What are the different types of inheritance in java?
what is meant by HQL?
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.
what is the meaning of java.lang and java.util
Is it possible to declare abstract class as final?What happens if we do so?
Can inner class final?
what is difference between excute query ()and execute update ()?
Explain, java is compatible with all servers but not all browsers?