← 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?
- A.It encrypts the file
- B.It makes the file smaller
- C.It allows two programs to write at once
- 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 →