what is difference between using BufferedInputStream and File InputStream for java input? when is it prefered to use the Buffered? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what is difference between using BufferedInputStream and File InputStream for java input? when is it prefered to use the Buffered?

15th Dec 2016, 1:07 PM
Nermeen Ahmed
Nermeen Ahmed - avatar
2 Answers
+ 2
- BufferedInputStream is buffered, but FileInputStream is not. - A BufferedInputStream reads from another InputStream, but a FileInputStream reads from a file.
16th Dec 2016, 3:43 AM
Mario Aliaga
Mario Aliaga - avatar
+ 1
how i can determine which type of input or output to use? there are a lot of classes!! i need an useful article about the summary.
17th Dec 2016, 7:20 AM
Nermeen Ahmed
Nermeen Ahmed - avatar