🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: File Handling in Java: all 10 questions

Quiz: File Handling in Java · Question 5 of 10

What is the main benefit of a buffered reader or writer?

What is the main benefit of a buffered reader or writer?

  1. A.It encrypts the file
  2. B.It makes the file smaller
  3. C.It allows two programs to write at once
  4. D.It moves data in large chunks, so there are far fewer slow trips to the disk
Answer & explanation

Correct answer: It moves data in large chunks, so there are far fewer slow trips to the disk

The buffer holds a chunk in memory and serves many small reads or writes from it.

Can you get the rest right without peeking?

Take the timed Quiz: File Handling in Java quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →