Core Java Interview What is the difference between Filereader and FileInputStream

preview_player
Показать описание


Top Java Interview Questions and Answers :

1.What is the difference between "FileReader" and "FileStream" ?

Class FileReader:
It is use to read stream of character data.
It can only read character data, so its the best way of reading character files.

Class FileInputStream:

It is use for reading stream of data from a file in the form of raw bytes(8-bit).
Very useful to read image.
It can also read character files.

Рекомендации по теме
Комментарии
Автор

you should explain the meaning of "reading in the form of raw bytes 8bit"

text
welcome to shbcf.ru