Qus:    What is the purpose of using Buffered Input Stream and Buffered Output Stream classes?
Jul 19, 2021 13:53 1 Answers Views: 422 RANJIT
Prev Next
Answers (1)
ROHAN Dec 21, 2021 00:43
Answer:   BufferedInputStream
The BufferedInputStream provides the functionality to another input stream for faster reading of data. The BufferedInputStream class has the ability to buffer the input and to support the mark and reset methods. It extends the functionality of FileInputStream.

BufferedOutputStream class is used for buffering an output stream. It internally uses buffer to store data. It adds more efficiency than to write data directly into a stream. So, it makes the performance fast.For adding the buffer in an OutputStream, use the BufferedOutputStream class

Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.

Let`s Connect