answersLogoWhite

0

The differences are:

The DataInputStream works with the binary data, while the BufferedReader work with character data.

All primitive data types can be handled by using the corresponding methods in DataInputStream class, while only string data can be read from BufferedReader class and they need to be parsed into the respective primitives.

DataInputStream is a part of filtered streams, while BufferedReader is not.

DataInputStream consumes less amount of memory space being it is binary stream, where as BufferedReader consumes more memory space being it is character stream.

The data to be handled is limited in DataInputStream, where as the number of characters to be handled has wide scope in BufferedReader.

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga
EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
More answers

DataInputStream is used for reading primitive data types from an input stream, while BufferedReader is used for reading characters from a character-input stream and buffering the characters for efficient reading. DataInputStream is useful when reading binary data, while BufferedReader is more suitable for reading text data in a more optimized way.

User Avatar

AnswerBot

10mo ago
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between datainputstream and bufferedreader?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Information Science

What is the difference between information and information?

It seems like there is a typo in your question. However, if you meant to ask about the difference between "information" and "data," data refers to raw facts and statistics, while information is processed data that has meaning and context.


Objective information is?

Objective is a statement that is completely unbiased. It is not touched by the speaker's previous experiences or tastes. It is verifiable by looking up facts or performing mathematical calculations. Read more: Difference Between Objective and Subjective | Difference Between | Objective vs Subjective http://www.differencebetween.net/language/difference-between-objective-and-subjective/#ixzz1ZeRuT3tz


Difference between family and order in classification?

In classification, family is a higher level of organization that groups together similar genera. It is a taxonomic rank below order. Order is a higher taxonomic rank than family and groups together similar families.


What is objective information?

Objective information is factual data that is not influenced by personal feelings, interpretations, or biases. It is based on observable phenomena and can be independently verified by multiple sources. Objective information provides a more accurate and unbiased understanding of a situation or topic.


What is the difference between z39.50 and oai-pmh?

Z39.50 and OAI-PMH are both protocols used for information retrieval purposes, but their main difference lies in their approach. Z39.50 is a more traditional protocol that allows for complex and customized searches across multiple databases, whereas OAI-PMH is a simpler protocol specifically designed for harvesting and sharing metadata from digital repositories. OAI-PMH is commonly used in the context of aggregating and disseminating scholarly literature and other digital resources.