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


Please Help Members By Posting Answers For Below Questions

What are the two types of java?

515


What is singleton class in ruby?

557


What is the difference between serializable and externalizable interface?

566


How you can force the garbage collection?

533


Why is it called a string?

561






How to stop a thread in java? Explain about sleep () method in a thread?

578


Which variables are stored in stack?

442


Why is multithreading important?

489


placement papaers of spring computing technology

1021


Are functions objects in java?

537


What is Session reduplication and how its done?

1562


What's the base class in java from which all classes are derived?

735


What is the difference between compare and compareto in java?

490


What is the difference between inner class and nested class?

548


What are anonymous inner classes?

561