What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?



What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream cl..

Answer / Chetan Khanna

The main difference lies in their purpose. The Reader/Writer class hierarchy is designed to read or write character streams, dealing with characters rather than bytes. It's useful for handling text files. On the other hand, InputStream/OutputStream class hierarchy deals with byte streams and is used for binary files.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why is an interface be able to extend more than one interface but a class can’t extend more than one class?

1 Answers  


How is Object Oriented Programming different from Procedure Oriented Programming?

1 Answers   Amdocs,


Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.

1 Answers   Fidelity,


Explain about java sdk?

1 Answers  


How can we create a synchronized collection from given collection?

1 Answers  


Differentiate between overriding and overloading cases?

1 Answers   Amdocs,


Do you know how to reverse string in java?

1 Answers  


Explain java coding standards for methods?

1 Answers  


How to create com object in Java?

1 Answers  


From the two, which would be easier to write: synchronization code for ten threads or two threads?

1 Answers  


What is constructor chaining and how is it achieved in java?

1 Answers  


What are bind parameters?

1 Answers  


Categories